1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Rename all *.pde files to *.ino

This commit is contained in:
Rhys Weatherley 2013-09-29 09:28:58 +10:00
parent 393eb6c2ba
commit d580a33753
31 changed files with 42 additions and 42 deletions

View File

@ -44,7 +44,7 @@ simple to use in any application and which won't block other activities.
We start this example by including the BlinkLED class and instantiating an We start this example by including the BlinkLED class and instantiating an
object instance: object instance:
\dontinclude BlinkLED/examples/Blink/Blink.pde \dontinclude BlinkLED/examples/Blink/Blink.ino
\skip #include \skip #include
\until statusBlink \until statusBlink
@ -61,7 +61,7 @@ BlinkLED statusBlink(13, 70, 930, true);
The remaining code we need is a call to BlinkLED::loop() every time around The remaining code we need is a call to BlinkLED::loop() every time around
the main application loop: the main application loop:
\dontinclude BlinkLED/examples/Blink/Blink.pde \dontinclude BlinkLED/examples/Blink/Blink.ino
\skip loop() \skip loop()
\until } \until }
@ -76,5 +76,5 @@ specific value using BlinkLED::setState().
The full source code for the example follows: The full source code for the example follows:
\include BlinkLED/examples/Blink/Blink.pde \include BlinkLED/examples/Blink/Blink.ino
*/ */

View File

@ -39,7 +39,7 @@ how to connect up larger numbers of pins in a Charlieplexed arrangement.
The first step is to initialize a Charlieplex object with the output The first step is to initialize a Charlieplex object with the output
pins it needs to drive: pins it needs to drive:
\dontinclude BlinkLED/examples/Charlieplex/Charlieplex.pde \dontinclude BlinkLED/examples/Charlieplex/Charlieplex.ino
\skip #include \skip #include
\until charlie \until charlie
@ -47,7 +47,7 @@ Then in <tt>setup()</tt> we use Charlieplex::setLed() and
Charlieplex::setPwmLed() to set three of the six LED's to Charlieplex::setPwmLed() to set three of the six LED's to
the desired output values: the desired output values:
\dontinclude BlinkLED/examples/Charlieplex/Charlieplex.pde \dontinclude BlinkLED/examples/Charlieplex/Charlieplex.ino
\skip setup \skip setup
\until } \until }
@ -56,7 +56,7 @@ necessary to constantly scan the entire LED array, alternatively turning
LED's on and off. The user's peristence of vision fills in the gaps. LED's on and off. The user's peristence of vision fills in the gaps.
To do this, we call Charlieplex::loop(): To do this, we call Charlieplex::loop():
\dontinclude BlinkLED/examples/Charlieplex/Charlieplex.pde \dontinclude BlinkLED/examples/Charlieplex/Charlieplex.ino
\skip loop \skip loop
\until } \until }
@ -69,9 +69,9 @@ cause it to exceed its maximum rating and burn out.
The full source code for the example follows: The full source code for the example follows:
\include BlinkLED/examples/Charlieplex/Charlieplex.pde \include BlinkLED/examples/Charlieplex/Charlieplex.ino
A more complex example that performs a LED chase over the 6 LED's follows: A more complex example that performs a LED chase over the 6 LED's follows:
\include BlinkLED/examples/CharlieplexChase/CharlieplexChase.pde \include BlinkLED/examples/CharlieplexChase/CharlieplexChase.ino
*/ */

View File

@ -32,13 +32,13 @@ six LED's in a back and forth motion, using the following schematic:
We start by including the ChaseLEDs class: We start by including the ChaseLEDs class:
\dontinclude BlinkLED/examples/Cylon/Cylon.pde \dontinclude BlinkLED/examples/Cylon/Cylon.ino
\skip ChaseLEDs.h \skip ChaseLEDs.h
\until ChaseLEDs.h \until ChaseLEDs.h
The next step is to define the pins that the chase will run over: The next step is to define the pins that the chase will run over:
\dontinclude BlinkLED/examples/Cylon/Cylon.pde \dontinclude BlinkLED/examples/Cylon/Cylon.ino
\skip byte pins \skip byte pins
\until cylonEyes \until cylonEyes
@ -47,7 +47,7 @@ with each LED lit for 100 milliseconds before moving onto the next one.
To complete the example, we need to call ChaseLEDs::loop() each time To complete the example, we need to call ChaseLEDs::loop() each time
around our main loop to cause the chase to run: around our main loop to cause the chase to run:
\dontinclude BlinkLED/examples/Cylon/Cylon.pde \dontinclude BlinkLED/examples/Cylon/Cylon.ino
\skip loop() \skip loop()
\until } \until }
@ -59,7 +59,7 @@ So far we are chasing only a single LED. We could change this to chase
two adjacent LED's instead by defining a new \c CylonChase class that two adjacent LED's instead by defining a new \c CylonChase class that
inherits from ChaseLEDs: inherits from ChaseLEDs:
\dontinclude BlinkLED/examples/Cylon2/Cylon2.pde \dontinclude BlinkLED/examples/Cylon2/Cylon2.ino
\skip class CylonChase \skip class CylonChase
\until }; \until };
@ -70,7 +70,7 @@ get the pin that is 2 steps back in the sequence, set it to LOW, and then
set the previous pin (1 step back) and the next pin to HIGH. All that set the previous pin (1 step back) and the next pin to HIGH. All that
remains is to change our chase initialization to use the new class: remains is to change our chase initialization to use the new class:
\dontinclude BlinkLED/examples/Cylon2/Cylon2.pde \dontinclude BlinkLED/examples/Cylon2/Cylon2.ino
\skip byte pins \skip byte pins
\until cylonEyes \until cylonEyes
@ -78,7 +78,7 @@ We can do even better than this. Instead of fully lighting both LED's,
we could instead use the PWM outputs to dim the previous pin, creating a we could instead use the PWM outputs to dim the previous pin, creating a
kind of "trailing flame" effect: kind of "trailing flame" effect:
\dontinclude BlinkLED/examples/Cylon3/Cylon3.pde \dontinclude BlinkLED/examples/Cylon3/Cylon3.ino
\skip advance( \skip advance(
\until } \until }
@ -91,11 +91,11 @@ rate is to hook up a 10K potentiometer to the A0 analog input:
We then modify the <tt>advance()</tt> method to read the new chase rate We then modify the <tt>advance()</tt> method to read the new chase rate
from the potentiometer each time the LED advances: from the potentiometer each time the LED advances:
\dontinclude BlinkLED/examples/Cylon4/Cylon4.pde \dontinclude BlinkLED/examples/Cylon4/Cylon4.ino
\skip advance( \skip advance(
\until } \until }
The full source code for the final version of the example follows: The full source code for the final version of the example follows:
\include BlinkLED/examples/Cylon4/Cylon4.pde \include BlinkLED/examples/Cylon4/Cylon4.ino
*/ */

View File

@ -71,7 +71,7 @@ Now that we have a circuit, let's configure the red navigation LED on AOUT2
using the BlinkLED class, to blink with a period of 1000 milliseconds on, using the BlinkLED class, to blink with a period of 1000 milliseconds on,
1000 milliseconds off: 1000 milliseconds off:
\dontinclude BlinkLED/examples/StarTrek/StarTrek.pde \dontinclude BlinkLED/examples/StarTrek/StarTrek.ino
\skip <BlinkLED.h> \skip <BlinkLED.h>
\until <BlinkLED.h> \until <BlinkLED.h>
\skip NAV_LIGHTS \skip NAV_LIGHTS
@ -84,7 +84,7 @@ using the BlinkLED class, to blink with a period of 1000 milliseconds on,
We repeat the process for the strobe LED on AOUT3, with a period of We repeat the process for the strobe LED on AOUT3, with a period of
70 milliseconds on, and 830 milliseconds off: 70 milliseconds on, and 830 milliseconds off:
\dontinclude BlinkLED/examples/StarTrek/StarTrek.pde \dontinclude BlinkLED/examples/StarTrek/StarTrek.ino
\skip STROBE_LIGHT \skip STROBE_LIGHT
\until STROBE_LIGHT \until STROBE_LIGHT
\skip STROBE_LIGHT_ON \skip STROBE_LIGHT_ON
@ -112,14 +112,14 @@ outputs to create a trailing flame effect. See the
\ref blink_cylon "Cylon" example for more information on creating \ref blink_cylon "Cylon" example for more information on creating
custom effects with ChaseLEDs. custom effects with ChaseLEDs.
\dontinclude BlinkLED/examples/StarTrek/StarTrek.pde \dontinclude BlinkLED/examples/StarTrek/StarTrek.ino
\skip NACELLE_CHASE_LEN \skip NACELLE_CHASE_LEN
\until NacelleChaseLEDs nacelleChase \until NacelleChaseLEDs nacelleChase
We also need to add a call to ChaseLEDs::loop() to the application's We also need to add a call to ChaseLEDs::loop() to the application's
main loop: main loop:
\dontinclude BlinkLED/examples/StarTrek/StarTrek.pde \dontinclude BlinkLED/examples/StarTrek/StarTrek.ino
\skip loop() \skip loop()
\until } \until }
@ -154,12 +154,12 @@ Other nacelle effects are possible by modifying the <tt>advance()</tt> method
in the sketch. For example, the "opposite pairs" effect with 3 outputs in the sketch. For example, the "opposite pairs" effect with 3 outputs
can also be done with 6 outputs and the following modification to the sketch: can also be done with 6 outputs and the following modification to the sketch:
\dontinclude BlinkLED/examples/StarTrek2/StarTrek2.pde \dontinclude BlinkLED/examples/StarTrek2/StarTrek2.ino
\skip advance(byte \skip advance(byte
\until } \until }
The full source code for the example, including the "opposite pairs" The full source code for the example, including the "opposite pairs"
effect, follows: effect, follows:
\include BlinkLED/examples/StarTrek2/StarTrek2.pde \include BlinkLED/examples/StarTrek2/StarTrek2.ino
*/ */

View File

@ -38,5 +38,5 @@ drawing and animating bitmaps.
The full source code for the demo follows: The full source code for the demo follows:
\include DMD/examples/Demo/Demo.pde \include DMD/examples/Demo/Demo.ino
*/ */

View File

@ -32,7 +32,7 @@ available in red, blue, green, yellow, and white variations.
The first step is to initialize the display: The first step is to initialize the display:
\dontinclude DMD/examples/RunningFigure/RunningFigure.pde \dontinclude DMD/examples/RunningFigure/RunningFigure.ino
\skip #include \skip #include
\until DMD display; \until DMD display;
@ -40,7 +40,7 @@ We will also need some bitmaps to animate the running figure. We will use
static bitmaps stored in program memory. The first frame of the 10-frame static bitmaps stored in program memory. The first frame of the 10-frame
animation is: animation is:
\dontinclude DMD/examples/RunningFigure/RunningFigure.pde \dontinclude DMD/examples/RunningFigure/RunningFigure.ino
\skip run1 \skip run1
\until }; \until };
@ -52,13 +52,13 @@ are 18x16 and 13x16.
We store pointers to all of the frames in a common array: We store pointers to all of the frames in a common array:
\dontinclude DMD/examples/RunningFigure/RunningFigure.pde \dontinclude DMD/examples/RunningFigure/RunningFigure.ino
\skip frames[] \skip frames[]
\until frame = 0 \until frame = 0
All that remains is to run the animation loop: All that remains is to run the animation loop:
\dontinclude DMD/examples/RunningFigure/RunningFigure.pde \dontinclude DMD/examples/RunningFigure/RunningFigure.ino
\skip ADVANCE_MS \skip ADVANCE_MS
\until display.loop() \until display.loop()
\until } \until }
@ -73,7 +73,7 @@ Sometimes it can be inconvenient to arrange for DMD::loop() to be called
regularly. An alternative is to use Timer1 or Timer2 and regularly. An alternative is to use Timer1 or Timer2 and
\ref dmd_interrupts "interrupt-driven display refresh": \ref dmd_interrupts "interrupt-driven display refresh":
\dontinclude DMD/examples/RunningFigureISR/RunningFigureISR.pde \dontinclude DMD/examples/RunningFigureISR/RunningFigureISR.ino
\skip ADVANCE_MS \skip ADVANCE_MS
\until loop() \until loop()
\until } \until }
@ -83,5 +83,5 @@ would be used in place of \c TIMER1_OVF_vect and \ref DMD::enableTimer1() "enabl
The full source code for the example follows: The full source code for the example follows:
\include DMD/examples/RunningFigure/RunningFigure.pde \include DMD/examples/RunningFigure/RunningFigure.ino
*/ */

View File

@ -34,5 +34,5 @@ infrared receiver connected to D2, GND, and 5V:
The full source code for the example follows: The full source code for the example follows:
\include IR/examples/DumpIR/DumpIR.pde \include IR/examples/DumpIR/DumpIR.ino
*/ */

View File

@ -27,5 +27,5 @@
This example demonstrates the use of the DMD and IRreceiver classes. This example demonstrates the use of the DMD and IRreceiver classes.
The full source code follows: The full source code follows:
\include IR/examples/Snake/Snake.pde \include IR/examples/Snake/Snake.ino
*/ */

View File

@ -37,14 +37,14 @@ buttons are used to modify the value of the currently-displayed field.
We start by including the classes from the library that we will need: We start by including the classes from the library that we will need:
\dontinclude LCD/examples/Form/Form.pde \dontinclude LCD/examples/Form/Form.ino
\skip LCD.h \skip LCD.h
\until BoolField.h \until BoolField.h
Next, we initialize the LCD display, create the main form, and populate Next, we initialize the LCD display, create the main form, and populate
it with fields: it with fields:
\dontinclude LCD/examples/Form/Form.pde \dontinclude LCD/examples/Form/Form.ino
\skip lcd; \skip lcd;
\until lcd; \until lcd;
\skip mainForm \skip mainForm
@ -77,7 +77,7 @@ duration between 0 and 24 hours.
Now that we have defined our form, we need to initialize the program and Now that we have defined our form, we need to initialize the program and
show the form for the first time: show the form for the first time:
\dontinclude LCD/examples/Form/Form.pde \dontinclude LCD/examples/Form/Form.ino
\skip STATUS_LED \skip STATUS_LED
\until } \until }
@ -89,7 +89,7 @@ All that remains is to define our application's \c loop function which
retrieves button events from LCD::getButton() and dispatches them retrieves button events from LCD::getButton() and dispatches them
to the form: to the form:
\dontinclude LCD/examples/Form/Form.pde \dontinclude LCD/examples/Form/Form.ino
\skip loop() \skip loop()
\until } \until }
\until } \until }
@ -97,5 +97,5 @@ to the form:
The full source code for the example follows: The full source code for the example follows:
\include LCD/examples/Form/Form.pde \include LCD/examples/Form/Form.ino
*/ */

View File

@ -36,7 +36,7 @@ basic text output and to use the enhanced shield features.
We start by including the library and initializing it: We start by including the library and initializing it:
\dontinclude LCD/examples/HelloWorld/HelloWorld.pde \dontinclude LCD/examples/HelloWorld/HelloWorld.ino
\skip LCD.h \skip LCD.h
\until lcd \until lcd
@ -53,7 +53,7 @@ LCD lcd(A1);
The next step is to enable the screen saver and print some text The next step is to enable the screen saver and print some text
in the \c setup function: in the \c setup function:
\dontinclude LCD/examples/HelloWorld/HelloWorld.pde \dontinclude LCD/examples/HelloWorld/HelloWorld.ino
\skip setup() \skip setup()
\until } \until }
@ -65,13 +65,13 @@ or calling LCD::display() will wake up the screen again.
In the program's \c loop function we print the number of seconds In the program's \c loop function we print the number of seconds
since startup to the second line of the LCD display: since startup to the second line of the LCD display:
\dontinclude LCD/examples/HelloWorld/HelloWorld.pde \dontinclude LCD/examples/HelloWorld/HelloWorld.ino
\skip loop() \skip loop()
\until millis() \until millis()
We then print the name of the button that is currently pressed: We then print the name of the button that is currently pressed:
\dontinclude LCD/examples/HelloWorld/HelloWorld.pde \dontinclude LCD/examples/HelloWorld/HelloWorld.ino
\skip setCursor(8, 1) \skip setCursor(8, 1)
\until } \until }
@ -81,5 +81,5 @@ pressed or released this time through the loop.
The full source code for the example follows: The full source code for the example follows:
\include LCD/examples/HelloWorld/HelloWorld.pde \include LCD/examples/HelloWorld/HelloWorld.ino
*/ */

View File

@ -56,7 +56,7 @@
* The following example drives 6 LED's connected to the output pins * The following example drives 6 LED's connected to the output pins
* D9, D10, and D11: * D9, D10, and D11:
* *
* \dontinclude BlinkLED/examples/Charlieplex/Charlieplex.pde * \dontinclude BlinkLED/examples/Charlieplex/Charlieplex.ino
* \skip #include * \skip #include
* \until charlie.loop * \until charlie.loop
* \until } * \until }