Skip to content

Instantly share code, notes, and snippets.

View tiagohm's full-sized avatar
🔭

Tiago tiagohm

🔭
View GitHub Profile
/*
Demonstração do uso de um display de 7 segmentos com ATMEGA328P.
Autor: Tiago Melo
Blog: Microcontrolandos
Compilador: MikroC PRO AVR
Bibliotecas:
*/
//Mascara de bits usado para escrever um digito no display
@tiagohm
tiagohm / projeto_termometro_digital.c
Created August 20, 2017 17:11
Meu primeiro projeto, feito em 2012: Termômetro Digital
//Pinos do LCD
sbit LCD_RS at RB4_bit;
sbit LCD_EN at RB5_bit;
sbit LCD_D4 at RB0_bit;
sbit LCD_D5 at RB1_bit;
sbit LCD_D6 at RB2_bit;
sbit LCD_D7 at RB3_bit;
sbit LCD_RS_Direction at TRISB4_bit;
sbit LCD_EN_Direction at TRISB5_bit;
sbit LCD_D4_Direction at TRISB0_bit;
@tiagohm
tiagohm / rda5807.c
Created August 3, 2017 10:48
RDA5807 - Single-Chip Broadcast FM Radio Tuner
/*
RDA5807 - SINGLE-CHIP BROADCAST FM RADIO TUNER
Autor: Tiago Melo
Blog: tiagohm.github.io/microcontrolandos
Compilador: MikroC PRO PIC
*/
#define RDA5807P_ADDRESS 0x20