diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -21,12 +21,13 @@ extern "C" { int main(int argc, char** argv) { - LATE = 0x0000; - TRISE = 0x002f; - CNPUE = 0x0000; + pin<4> led1(&LATEbits, &TRISEbits, &PORTEbits); + pin<6> led2(&LATEbits, &TRISEbits, &PORTEbits); + pin<7> led3(&LATEbits, &TRISEbits, &PORTEbits); - pin<decltype(LATEbits), 4> led1(&LATEbits); led1.set(1); + led2.set(1); + led3.set(1); while (true) { } |