#include <tucbot/tucbot.h>
void testEncoder(void);
int main(void);
void testEncoder(void) {
while (1) {
}
}
}
}
int main (void) {
testEncoder();
return (0);
}
void leds_set(eLedMask bitmask, uint8_t bool)
Sets the selected leds on or off.
eEncoderSelectMask encoders_changed(eEncoderSelectMask bitmask)
Indicates if new data changed the selected data blocks.
@ kLedOn
constant (0xFF): turn leds on
Definition: leds.h:63
@ kLedRight
bit mask (0x04): right led
Definition: leds.h:46
@ kEncoderSelectAbs
Definition: encoders.h:118
void int16tostr(void *out, int16_t number, uint8_t digits)
Converts an integer to a string and passes it to an output function.
void encoders_clear(void)
Clears the encoder values.
@ 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.
int32_t encoders_get(eEncoderGet select)
Returns the last stored version of the selected value.
@ kEncoderGetRight
constant (2): right encoder (32-bit)
Definition: encoders.h:183
@ kEncoderGetLeft
constant (1): left encoder (32-bit)
Definition: encoders.h:181
void lcdstr_p(const char *send_data)
Writes a string located in the flash to the display.
void encoders_request(eEncoderSelectMask bitmask, eRequestType request)
Requests new data from the encoders.
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.