File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ def rgb_blink_example(led, count=20):
128
128
# Run the example when this file is loaded
129
129
130
130
131
- def run_example ():
131
+ def run ():
132
132
133
133
print ("-----------------------------------------------------------" )
134
134
print ("Running the SparkFun RGB blink example..." )
@@ -149,4 +149,4 @@ def run_example():
149
149
print ("Done!" )
150
150
151
151
152
- run_example ()
152
+ run ()
Original file line number Diff line number Diff line change @@ -180,10 +180,19 @@ def rgb_ramp_example():
180
180
led .write ()
181
181
182
182
183
- # ---------------------------------------------------------------------------------
184
- # Run the example when this file is loaded
185
- print ("-----------------------------------------------------------" )
186
- print ("Running the SparkFun RGB ramp example..." )
187
- print ("-----------------------------------------------------------" )
188
- rgb_ramp_example ()
189
- print ("Done!" )
183
+ def run ():
184
+ """
185
+ @brief Run the RGB ramp example.
186
+
187
+ @details
188
+ - Calls the rgb_ramp_example function to demonstrate LED color transitions.
189
+ """
190
+
191
+ print ("-----------------------------------------------------------" )
192
+ print ("Running the SparkFun RGB ramp example..." )
193
+ print ("-----------------------------------------------------------" )
194
+ rgb_ramp_example ()
195
+ print ("Done!" )
196
+
197
+
198
+ run ()
You can’t perform that action at this time.
0 commit comments