#include <tucbot/tucbot.h>
 
void testBeeper(void);
int main(void);
 
void testBeeper(void) {
 
    uint16_t hz = 1000;
 
 
    while (1) {
 
            hz = (hz / 9) * 10;
            if (hz > 9999) {hz = 9999;}
 
 
 
            hz = (hz / 10) * 9;
            if (hz < 200) {hz = 200;}
 
        }
    }
}
 
int main (void) {
 
 
 
    testBeeper();
 
    return (0);
}
   
void leds_set(eLedMask bitmask, uint8_t bool)
Sets the selected leds on or off.
 
@ kLedOn
constant (0xFF): turn leds on
Definition: leds.h:63
 
@ kLedRight
bit mask (0x04): right led
Definition: leds.h:46
 
void int16tostr(void *out, int16_t number, uint8_t digits)
Converts an integer to a string and passes it to an output function.
 
void beeper_set(uint16_t Hz)
Sets the frequency of the beeper.
 
@ kRequestContinuous
constant (3): request continuous updates
Definition: update.h:37
 
@ kLedMiddle
bit mask (0x08): middle led
Definition: leds.h:44
 
@ kLedOff
constant (0x00): turn leds off
Definition: leds.h:61
 
void lcdclr(void)
Clears the display.
 
void lcdxy(uint8_t x, uint8_t y)
Moves the cursor to a postion on the display.
 
void lcdstr_p(const char *send_data)
Writes a string located in the flash to the display.
 
void lcdout(uint8_t data)
Writes one byte to the display.
 
void init_tucbot(uint8_t enable_interrupts)
Initiates the TUC-Bot.
 
void mdelay(uint16_t mseconds)
Waits for the given time in milliseconds.