Tutorial 4: Going Arduino 1.0
|
The new release for Arduino 1.0 is available and includes a new syntax for a very limited list of functions.
This ensures a better consistency. Non-essential parameters are pre-populated with default values. SoftwareSerial manages now the software serial port instead of NewSoftSerial. As SoftwareSerial comes with Arduino 1.0, there's no need to download NewSoftSerial. Code should be adapted accordingly. |
|
Here is the list of the modified functions
|
with the corresponding new ones
|
|
uint8_t tText(uint8_t x, uint8_t y, uint16_t colour, String s)
|
uint8_t tText(uint8_t x, uint8_t y, String s, uint16_t colour=whiteColour)
Note the default value whiteColour for colour.
|
|
uint8_t gText(uint8_t x, uint8_t y, uint16_t colour, String s)
|
uint8_t gText(uint8_t x, uint8_t y, String s, uint16_t colour=whiteColour)
|
|
uint16_t rgb16(uint8_t red, uint8_t green, uint8_t blue)
This functions is deprecated.
|
uint16_t setColour(uint8_t red, uint8_t green, uint8_t blue)
|
One Single BrancheThe GitHub repository contains one single master branch for the Arduino 0023 / Wiring / chipKIT 0023 and for the Arduino 1.0.
|
Previous |
Next |