"Battery voltage

sonic1 · 3 · 4024

sonic1

  • Newbie
  • *
    • Posts: 2
    • View Profile
When compiling the Battery Voltage reading sketch, I get SYSCTRL was not declared in this scope error. Is there a newer version sketch then the 7.3.18 version, or how do I fix this?

Thanks
« Last Edit: October 24, 2019, 10:42:47 AM by sonic1 »


lennevia

  • Administrator
  • Hero Member
  • *****
    • Posts: 437
    • View Profile
I didn't receive that error when using a Rev4 TinyScreen+. Is there any more information you can give on the error?


cptwinder

  • Newbie
  • *
    • Posts: 3
    • View Profile
@sonic1

You didn't verify you were using the TinyScreen+ or one of the other TinyDuinos. If you are using this guy, https://tinycircuits.com/collections/processors/products/tinyduino-processor-board it has a different processor than the TinyScreen+ and that sketch won't work.

I am currently using this library to read the Vcc voltage on the TinyDuino, https://github.com/Yveaux/Arduino_Vcc.

Hope this helps!


 

SMF spam blocked by CleanTalk