Phambili-Tech / Newt_Display

An Arduino library for the Phambili Newt - a low power smart display
Other
58 stars 7 forks source link

Instructions on programming #55

Open jhoskins98 opened 1 year ago

jhoskins98 commented 1 year ago

Having issues getting either Hello_World or Newt to compile. Gives multiple definition errors. Using a Mac so not clear if the issue is the Mac setup of Arduino IDE or how I am running the programs within the IDE.

darianbjohnson commented 1 year ago

Can you give me a screen shot of the errors that you're getting?

jhoskins98 commented 9 months ago

Go new mac and restarted working on newt again.

Error is: /Users/xyz/dev/Arduino/Example1_Hello_World/Example1_Hello_World.ino: In function 'void setup()': /Users/xyz/dev/Arduino/Example1_Hello_World/Example1_Hello_World.ino:170:16: error: no matching function for call to 'HardwareSerial::begin()' Serial.begin(); ^ In file included from /Users/xyz/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14/cores/esp32/Arduino.h:184, from /private/var/folders/5n/m66nxt1s331_qb5xn3y9bg940000gn/T/arduino/sketches/A1D6EC4DF5CC27DEE11095D4A74CE242/sketch/Example1_Hello_World.ino.cpp:1: /Users/xyz/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14/cores/esp32/HardwareSerial.h:109:10: note: candidate: 'void HardwareSerial::begin(long unsigned int, uint32_t, int8_t, int8_t, bool, long unsigned int, uint8_t)' void begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1, bool invert=false, unsigned long timeout_ms = 20000UL, uint8_t rxfifo_full_thrhd = 112); ^~~~~ /Users/xyz/Library/Arduino15/packages/esp32/hardware/esp32/2.0.14/cores/esp32/HardwareSerial.h:109:10: note: candidate expects 7 arguments, 0 provided

exit status 1

Compilation error: no matching function for call to 'HardwareSerial::begin()'

jhoskins98 commented 9 months ago

Update - got the example to compile and update by giving Serial.begin(); a single argument. Put in 0 which according to some site says it should put it in automatic baud detection. Sketch compiled, downloaded and worked after power cycle but serial does not work.

i.e.

 - Serial.begin();
 + Serial.begin(0);
darianbjohnson commented 9 months ago

Interesting... I'll look into it. What version of the arduino ESP-32 library are you using?

On Wed, Jan 3, 2024 at 8:19 PM John Hoskins @.***> wrote:

Update - got the example to compile and update by giving Serial.begin(); a single argument. Put in 0 which according to some site says it should put it in automatic baud detection. Sketch compiled, downloaded and worked after power cycle but serial does not work.

i.e.

  • Serial.begin();

  • Serial.begin(0);

— Reply to this email directly, view it on GitHub https://github.com/Phambili-Tech/Newt_Display/issues/55#issuecomment-1876218698, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBGTVXR3UXGYOZBRKQL7ELYMYGRVAVCNFSM6AAAAAATKARMXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWGIYTQNRZHA . You are receiving this because you commented.Message ID: @.***>

jhoskins98 commented 9 months ago

2.0.14 of the esp-32