www.espboy.com project
There are 3 versions:
-
ESPboy_FristTest_AdafruitLibs - does not use custom ESPboy libs and uses only standard Adafruit libraries (slow and poor, but simple) to control ESPboy hardware (LED, buttons, sound, display)
-
ESPboy_FirstTest_ESPboyLibs_TFTeSPI -- uses ESPboy libs and TFT_eSPI (fastest) graphics library for display (be carefull, to force it work properly with ESPboy's display you have to edit parameters in "User_Setup.h" file in TFT_eSPI library folder according to this )
-
ESPboy_FirstTest_ESPboyLibs_LovyanGFX -- uses ESPboy libs and LovyanGFX (most advanced) graphics library for display
-
ESPboy_ArdublockFirstTest -- uses Ardublock.ru v3
-
Install Arduino IDE legacy 1.8.n recommended (not v2.n IDE) https://www.arduino.cc/en/Main/Software
-
Install the WeMos D1 mini ESP866 board to your Arduino IDE https://www.instructables.com/Wemos-ESP8266-Getting-Started-Guide-Wemos-101/
-
Install all the libs for ESPboy from here https://github.com/ESPboy-edu/ESPboy_ArduinoIDE_Libraries
-
Select the "LOLIN(WEMOS) D1 R2 & mini" board in the Arduino IDE and compile this code
-
Test ESPboy hardware:
- Power on
- 8 buttons
- Display TFT and its backlit
- RGB led
- Buzzer/Speaker
-
For better experience you have to istall to your Arduino IDE "Little FS file uploader plugin" and "ESP exception decoder plugin"
-
If you want to have professinal development tool much more powerfull than standard Arduino IDE, learn "VS Code" + "PlatformIO"
-
Use this example to start coding with ESPboy
-
To init ESPboy hardware use begin() of ESPboy_Init class
-
For doing graphics use methods of TFT_eSPI class or adafruit ST7735 lib or LovyanGFX lib according to your GFX-way choice
-
For buttons use getkeys() of ESPboyInit and keypressed&PAD_LEFT, keypressed&PAD_RIGHT and so on to understand what key is exactly pressed
-
For LED use ESPboy_LED class https://github.com/ESPboy-edu/ESPboy_Classes or NeoPixel https://github.com/adafruit/Adafruit_NeoPixel
-
For sound use playTone(frequency, duration), playTone (frequency) and noPlayTone() methods of ESPboy_Init class https://github.com/ESPboy-edu/ESPboy_Classes
-
To control the LCD backlit use Adafruit MCP4725 library methods https://github.com/adafruit/Adafruit_MCP4725 (not supported in ESPboy easy DIY versions)
-
To upload data (files) to internal flash file system use Arduino IDE plugins:
a) Little FS
b) SPIFFS
-
To upload to ESPboy already compiled ".bin" files, use Flash Download Tools
-
You can try alternate ESPboy lib, made by Steph and instructions
-
Use ESP8266 Arduino Core documentation https://arduino-esp8266.readthedocs.io/en/latest/index.html
-
Use WebAppStore and WiFiAppStore directly from the device (first install "AppStore2 (OTA2)" from the WebAppStore)
-
Ask questions in ESPboy forum and ESPboy discord chat
-
Have FUN! :)
Regards, Roman //
MIT License
Copyright (c) 2020 ESPboy
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.