I'm new to programming and a few days ago I decided to try my luck with a digispark BUT....
.....i have a problem when i'm trying to power it up with batteries (i tried with common AA batteries and one 18650 with booster).
The green led lights up, the red blinks (i think that means that the bootloader is starting), but my code doesn't seems to be working.
The strange thing is that when i power it up with my bench power supply all works perfect.
The circuit is very simple.... It's just an IR beam breaker sensor. I'm using PIN0 for detection, the internal LED(PIN1) and pin4 to send a simple pulse (to light another led for example).
Thanks in advance!!!