projets:fuz:webduino
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
projets:fuz:webduino [2019-12-03 21:39] – [Photocell] document photocell reading with example sketch Lomanic | projets:fuz:webduino [2019-12-29 11:23] – [Wiring and flashing] Lomanic | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Goals ===== | ===== Goals ===== | ||
* [OK] Flash Webduino with different IDEs | * [OK] Flash Webduino with different IDEs | ||
- | * Check Components : pins, photocell, RGB LED, button | + | * [OK] Check Components : pins, photocell, RGB LED, button |
* [OK?] Use OTA | * [OK?] Use OTA | ||
</ | </ | ||
Line 12: | Line 12: | ||
* [[https:// | * [[https:// | ||
* Webduino USB port is only used to power the board, not for upload and monitoring | * Webduino USB port is only used to power the board, not for upload and monitoring | ||
- | * The chip is labeled ESP8266MOD by AI Thinker, in fact it is an ESP-12F, same as Wemos d1 | + | * The chip is labeled ESP8266MOD by AI Thinker, in fact it is an ESP-12F, same as Wemos D1 |
- | * The Board include | + | * The board includes |
* [[https:// | * [[https:// | ||
Line 31: | Line 31: | ||
For **rebooting**, | For **rebooting**, | ||
- | Flashing usual sequence is : | + | Flashing usual sequence is: |
- Set flash position (GPIO0 on GND) | - Set flash position (GPIO0 on GND) | ||
- Power the FTDI and the Webduino | - Power the FTDI and the Webduino | ||
Line 91: | Line 91: | ||
RGB_color(255, | RGB_color(255, | ||
break; | break; | ||
- | case 3: // CYAN | + | case 3: |
RGB_color(0, | RGB_color(0, | ||
break; | break; | ||
- | case 4: // BLUE? | + | case 4: |
RGB_color(255, | RGB_color(255, | ||
break; | break; | ||
- | case 5: // GREEN | + | case 5: |
RGB_color(255, | RGB_color(255, | ||
break; | break; | ||
Line 154: | Line 154: | ||
void loop() { | void loop() { | ||
if (digitalRead(GPIO_MICRO_SWITCH_BUTTON) == LOW) { | if (digitalRead(GPIO_MICRO_SWITCH_BUTTON) == LOW) { | ||
- | Serial.println(analogRead(GPIO_PHOTOCELL)); | + | Serial.println(analogRead(GPIO_PHOTOCELL)); |
} | } | ||
} | } |
projets/fuz/webduino.txt · Last modified: 2023-02-02 22:06 by 127.0.0.1