Bascom = Bascom SAMPLE programming cable. First you'll want to calculate fuses using the very convenient AVR Fuse Calculator. To program the fuses,.
I'm a newb i tried this code. On my arduino (gift) and it seems to go beyond the 'OFF' & 'MAX' how do i make it count from OFF to 5(MAX). Because this code its prints OFF and MAX on display. But he goes beyond that with -1 -2 -3 -4 -5.and when i press my +button. I have to go from -2 or how many times i pushed the botton after OFF and for MAX the same.goes after my if (buttonPushCounter = 5) AND i want to modify this code to control a blinking led. Something like: if OFF = closed led if 1 = 1/min if 2 = 2/min if 3 = 3/min if MAX= 4/min + to display this PS i don't have any coding knowledge sry but im triend to learn but i got this 2 days ago.i i dont want to trow it away because i dont know how this is done I have browsed the forum for something similar.cant find anything. This appears to be a new member picking up an old ( 6 months) thread.
The quote was unnecessary however. @siko: You need to learn some more basics. If you have a range you want to use, you are the one to tell your Arduino how to handle that range. So if off is 0, then do not allow the value to go below 0, and if on = 255 do not allow the value to be more than that. Or if the value is already 'out of range', force it back in range before you do anything else with it. There are multiple ways of handling this. Everything you need for that is already in the sketch, use your imagination to extend it to fit your needs.
(You just need to add 2 lines). But comming up from -1 causes a problem. Also when coming down from 127 I get up to 999 after 100 coming down. So clearly this isn't the best way of doing this. Like I said before the larger project for which this intended has no delay (is a musical instrument) and the timer prescaler isn't the default,in order to maximize the analog reads. So 'delay's' are no good. Can I poll the button pins, put the values 0-127 in an array and do the increment/deincrement that way and what might that code look like?