Delay call from mainloop removed because of faster
usb communication.
This commit is contained in:
parent
66c84c6415
commit
f8242b9ae3
2 changed files with 2 additions and 27 deletions
|
@ -1,33 +1,8 @@
|
||||||
#define F_CPU 12000000UL
|
#define F_CPU 12000000UL
|
||||||
|
|
||||||
// Bitpopelei
|
// Bitshifting
|
||||||
#define set_bit(var, bit) ((var) |= (1 << (bit)))
|
#define set_bit(var, bit) ((var) |= (1 << (bit)))
|
||||||
#define clear_bit(var, bit) ((var) &= (unsigned)~(1 << (bit)))
|
#define clear_bit(var, bit) ((var) &= (unsigned)~(1 << (bit)))
|
||||||
|
|
||||||
// Bool
|
|
||||||
#define FALSE 0
|
|
||||||
#define TRUE 1
|
|
||||||
|
|
||||||
#define sleep_nop(cnt) for (uint8_t i = 0; i < cnt; i++) { asm volatile("nop"::); }
|
#define sleep_nop(cnt) for (uint8_t i = 0; i < cnt; i++) { asm volatile("nop"::); }
|
||||||
|
|
||||||
// Pixelmakros
|
|
||||||
#define PSET(x,y,z) (0b01000000 | ((z * 3 + x) + y * 9))
|
|
||||||
#define PCLEAR(x,y,z) (0b00000000 | ((z * 3 + x) + y * 9))
|
|
||||||
|
|
||||||
// Instructions
|
|
||||||
#define CLEAR 0b10000000
|
|
||||||
#define SET 0b10010000
|
|
||||||
#define FPS 0b10110000
|
|
||||||
#define NEXT 0b11110000
|
|
||||||
|
|
||||||
// Variablen
|
|
||||||
#define VAR_FPS 0
|
|
||||||
|
|
||||||
// Für CLEAR und SET
|
|
||||||
#define CLEAR_ALL 0
|
|
||||||
#define SET_ALL 0
|
|
||||||
|
|
||||||
// Für NEXT
|
|
||||||
#define JUMP_FORWARD 1
|
|
||||||
#define JUMP_BACKWARD 2
|
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ int main(void)
|
||||||
usbPoll(); // keep connected
|
usbPoll(); // keep connected
|
||||||
|
|
||||||
// hier pause einfügen
|
// hier pause einfügen
|
||||||
_delay_ms(50); // beispielsweise 50 ms => muss angepasst werden an usb kommunikation
|
//_delay_ms(1); // beispielsweise 50 ms => muss angepasst werden an usb kommunikation
|
||||||
|
|
||||||
/*anim++;
|
/*anim++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue