Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 199 → Rev 200

/PIC Stuff/Cerebot_32MX7_LED_Cube/defines.h
10,16 → 10,7
 
#define ADDRESS_EEPROM 0x50
 
// BTN1 = RG6, BTN2 = RG7, BTN3 = RD13
// Note: Write to PORTx is effectively the same as write to LATx
#define BTN1_TRIS TRISGbits.TRISG6
#define BTN1_PORT PORTGbits.RG6
#define BTN2_TRIS TRISGbits.TRISG7
#define BTN2_PORT PORTGbits.RG7
#define BTN3_TRIS TRISDbits.TRISD13
#define BTN3_PORT PORTDbits.RD13
 
// LED1 = G12, LED2 = G13, LED3 = G14, LED4 = G15
// LED1 = G12, LED2 = G13, LED3 = G14, LED4 = G15 (active high)
#define LED1_TRIS TRISGbits.TRISG12
#define LED1_PORT PORTGbits.RG12
#define LED2_TRIS TRISGbits.TRISG13
32,7 → 23,7
void Delay_MS(unsigned int delay_ms);
void Delay_US(unsigned int delay_us);
 
// <editor-fold defaultstate="collapsed" desc="PMOD to MCU Pinouts">
// <editor-fold desc="PMOD to MCU Pinouts">
/*
JA-01 AN2/C2IN-/CN4/RB2 RB02
JA-02 AN3/C2IN+/CN5/RB3 RB03