jodicalhon
New Member
Hi all, I'm totally new to the picaxe (or any microcontrollers) and have just got a couple of 08's and started mucking about. Built myself a rather dodgy looking download cable and resurrected an old breadboard to stick the circuit on.
After blundering about for a while, I have successfully downloaded a few minor (LED flashing) programs.
I've managed to attach an LDR to the ADC input, check its performance in the debug window, and write a program (heavily plagiarised!) to flash an LED when the light is above a certain level, and sound a two-tone alarm using a piezo element when the light level drops.
So far, so good!
How do I get the LED flashing and the piezo sounding at the same time? That is, when the light level drops, how do I organise a visual as well as audible alarm?
Thanks for any help on this. I'm having fun so far!
Jo C
After blundering about for a while, I have successfully downloaded a few minor (LED flashing) programs.
I've managed to attach an LDR to the ADC input, check its performance in the debug window, and write a program (heavily plagiarised!) to flash an LED when the light is above a certain level, and sound a two-tone alarm using a piezo element when the light level drops.
So far, so good!
How do I get the LED flashing and the piezo sounding at the same time? That is, when the light level drops, how do I organise a visual as well as audible alarm?
Thanks for any help on this. I'm having fun so far!
Jo C