From 98db109235883131f9a107b79d89e560f526b3bb Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Mon, 4 Mar 2019 00:34:42 +0300 Subject: [PATCH] Update README.md --- README.md | 81 ------------------------------------------------------- 1 file changed, 81 deletions(-) diff --git a/README.md b/README.md index 5b78cc3..6056c71 100644 --- a/README.md +++ b/README.md @@ -32,39 +32,6 @@ Scalability of Lighthub is virtually unlimited: Setup so many controllers you ne Finished portation of project to Arduino DUE and ESP8266 (ESP32 not tested). -Compiled image has been added to [compiled/](https://github.com/anklimov/lighthub/tree/master/compiled) folder. Flash your Mega 2560 - -```bash -avrdude -v -V -patmega2560 -cwiring -b115200 -D -Uflash:w:firmware.hex:i -``` - -or flash your DUE (need to correct path and port, of course) -```bash -/Users//Library/Arduino15/packages/arduino/tools/bossac/1.6.1-arduino/bossac -i -d --port=cu.usbmodem1451 -U false -e -w -v -b firmware.bin -R -``` -Note: binary images usually not up-to-date with recent code. The preferred way, to compile and upload firmware to your controller. - -# Dependencies -(quite big number of libs required. Use git clone to have your local copy in your Arduino libs folder) -Please check updates for all dependences. - -For patched libraries, appropriate GitHub repo URL provided: - -* Arduino-Temperature-Control-Library https://github.com/anklimov/Arduino-Temperature-Control-Library -* DS2482_OneWire https://github.com/anklimov/DS2482_OneWire -* FastLED -* Wire (standard) -* Artnet https://github.com/anklimov/Artnet.git -* DmxSimple https://github.com/anklimov/DmxSimple (for AVR) or https://github.com/anklimov/ESP-Dmx (for ESP) or https://github.com/anklimov/DmxDue (for DUE) -* HTTPClient (for AVR) https://github.com/anklimov/HTTPClient or https://github.com/arduino-libraries/ArduinoHttpClient for other platforms -* aJson https://github.com/anklimov/aJson -* CmdArduino https://github.com/anklimov/CmdArduino -* EEPROM (standard for AVR) or DueFlashStorage for DUE: https://github.com/sebnil/DueFlashStorage -* ModbusMaster https://github.com/anklimov/ModbusMaster -* pubsubclient-2.6 -* DMXSerial-master (for AVR) https://github.com/anklimov/DMXSerial -* Ethernet https://github.com/anklimov/Ethernet -* SPI (standard) Portation from AVR Mega 2560 to SAM3X8E (Arduino DUE) done since v 0.96 and tested against Wiznet 5100 Ethernet shield and Wiznet 5500 Ethernet module @@ -82,54 +49,6 @@ AVR version is basic, long time in production and have all functions * DMX-IN - not possible to deploy in ESP8266 * Modbus - disabled. Might be configured in future on USART0 instead CLI/DEBUG -since v. 0.97: -Mega and DUE: -Need to use compiler directive -D Wiz5500 and https://github.com/anklimov/Ethernet2 library to compile with Wiznet 5500 instead 5100 - -Prefered way to compile project is using platformio toolchain, suitable for Arduino Due, and Arduino Mega2560 - -# Due compilation issue "USART0_Handler redefinition" -Please, open /variants/arduino_due_x/variant.cpp file, then add USART0_Handler method definition like this -``` -void USART0_Handler(void) __attribute__((weak)); -``` - -The normal path to find this file in platformio is: -.platformio/packages/framework-arduinosam/variants/arduino_due_x - -# Platformio command line build instructions -[First of all install platformio framework.]( http://docs.platformio.org/en/latest/installation.html) [Good tutorial for fast start in RUSSIAN.](https://geektimes.ru/post/273852/) - -In linux\OSX you can open terminal, navigate to your programming directory, then - -```bash - git clone https://github.com/anklimov/lighthub.git - cd lighthub - ``` -now prepare project files for your IDE -```bash -pio init --ide [atom|clion|codeblocks|eclipse|emacs|netbeans|qtcreator|sublimetext|vim|visualstudio|vscode] -``` -Set custom build flags. first make your own copy of template -```bash -cp build_flags_template.sh my_build_flags.sh -``` -then edit, change or comment unnecessary sections and source it -```bash -source my_build_flags.sh -``` -build and upload firmware for due|megaatmega2560|esp8266 board -```bash -pio run -e due|megaatmega2560|esp8266 -t upload -``` -Clean pio libraries folder. Try it if you have compilation problem: -```bash -rm -Rf .piolibdeps -``` -open COM-port monitor with specified baud rate -```bash -platformio device monitor -b 115200 -``` # Custom build flags