this is my first issue with writing code so i am definitely a noob. i am working my way towards learning code to control physical hardware i.e. a remote control gas engine powered vehicle. i have plans to ultimately have sensory information transmit/receive between remote and vehicle along with commands. so the first thing i wanted to work on was making sure i know how much battery i have left in the vehicle. i am modifying the analogreadserial example in the arduino software using a parallel set of leds as visual reference without looking at serial monitor. if im out in the field i won’t have access to a computer screen. as the battery loses energy lights will turn off in succession until the last few remain. i wanted to add a “look at me” feature to these lights making them flash. heres where i got into trouble. i get there error messages for having the syntax in the wrongs spots and incorrect syntax used and so silly me thinks, “well why don’t you just give me the correct answer”. so my question is how can i make these two lights blink within this the code.
also any advice as to simplifying the code to free up some memory would be very helpful!
battery_life_meter.ino (2.29 KB)