summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index 5347507..59a9097 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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) {
}