Skip to content

Instantly share code, notes, and snippets.

View omgimdrunk's full-sized avatar

Omgimdrunk omgimdrunk

  • OMG I'm Drunk LLC
  • Middle of nowhere
View GitHub Profile
@omgimdrunk
omgimdrunk / max7219-basic.c
Created March 27, 2021 04:09 — forked from adnbr/max7219-basic.c
Simple AVR code for using a MAX7219 7-segment display driver
/* MAX7219 Interaction Code
* ---------------------------
* For more information see
* http://www.adnbr.co.uk/articles/max7219-and-7-segment-displays
*
* 668 bytes - ATmega168 - 16MHz
*/
// 16MHz clock
#define F_CPU 16000000UL