Skip to content

ESPboy-edu/ESPboy_FirstTest

Repository files navigation

Try "First test" to check your ESPboy after assembling

www.espboy.com project

There are 3 versions:

  1. 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)

  2. 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 )

  3. ESPboy_FirstTest_ESPboyLibs_LovyanGFX -- uses ESPboy libs and LovyanGFX (most advanced) graphics library for display

  4. ESPboy_ArdublockFirstTest -- uses Ardublock.ru v3

To start work with ESPboy

  1. Install Arduino IDE legacy 1.8.n recommended (not v2.n IDE) https://www.arduino.cc/en/Main/Software

  2. Install the WeMos D1 mini ESP866 board to your Arduino IDE https://www.instructables.com/Wemos-ESP8266-Getting-Started-Guide-Wemos-101/

  3. Install all the libs for ESPboy from here https://github.com/ESPboy-edu/ESPboy_ArduinoIDE_Libraries

  4. Select the "LOLIN(WEMOS) D1 R2 & mini" board in the Arduino IDE and compile this code

  5. Test ESPboy hardware:

  • Power on
  • 8 buttons
  • Display TFT and its backlit
  • RGB led
  • Buzzer/Speaker
  1. For better experience you have to istall to your Arduino IDE "Little FS file uploader plugin" and "ESP exception decoder plugin"

  2. If you want to have professinal development tool much more powerfull than standard Arduino IDE, learn "VS Code" + "PlatformIO"

  3. Use recommended Arduino IDE settings

Arduino IDE settings

Try "First test" to start programming

  1. Use this example to start coding with ESPboy

  2. To init ESPboy hardware use begin() of ESPboy_Init class

  3. For doing graphics use methods of TFT_eSPI class or adafruit ST7735 lib or LovyanGFX lib according to your GFX-way choice

  4. For buttons use getkeys() of ESPboyInit and keypressed&PAD_LEFT, keypressed&PAD_RIGHT and so on to understand what key is exactly pressed

  5. For LED use ESPboy_LED class https://github.com/ESPboy-edu/ESPboy_Classes or NeoPixel https://github.com/adafruit/Adafruit_NeoPixel

  6. For sound use playTone(frequency, duration), playTone (frequency) and noPlayTone() methods of ESPboy_Init class https://github.com/ESPboy-edu/ESPboy_Classes

  7. To control the LCD backlit use Adafruit MCP4725 library methods https://github.com/adafruit/Adafruit_MCP4725 (not supported in ESPboy easy DIY versions)

  8. To upload data (files) to internal flash file system use Arduino IDE plugins:

a) Little FS

b) SPIFFS

  1. To upload to ESPboy already compiled ".bin" files, use Flash Download Tools

  2. You can try alternate ESPboy lib, made by Steph and instructions

  3. Use ESP8266 Arduino Core documentation https://arduino-esp8266.readthedocs.io/en/latest/index.html

  4. Use WebAppStore and WiFiAppStore directly from the device (first install "AppStore2 (OTA2)" from the WebAppStore)

  5. Ask questions in ESPboy forum and ESPboy discord chat

  6. 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.

About

ESPboy app for providing initial hardware test

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published