aa

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Kiskovce
Date:
Mon Feb 14 11:56:39 2022 +0000
Parent:
0:e09703934ff4
Commit message:
ee

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e09703934ff4 -r b61353e34ace main.cpp
--- a/main.cpp	Wed Mar 16 01:49:13 2011 +0000
+++ b/main.cpp	Mon Feb 14 11:56:39 2022 +0000
@@ -26,10 +26,8 @@
 
 #include <mpr121.h>
 
-DigitalOut led1(LED1);
-DigitalOut led2(LED2);
-DigitalOut led3(LED3);
-DigitalOut led4(LED4);
+DigitalOut led1(PB_3);
+
 
 // Create the interrupt receiver object on pin 26
 InterruptIn interrupt(p26);
@@ -38,7 +36,7 @@
 Serial pc(USBTX, USBRX);
 
 // Setup the i2c bus on pins 28 and 27
-I2C i2c(p9, p10);
+I2C i2c(PB_6, PB_7);
 
 // Setup the Mpr121:
 // constructor(i2c object, i2c address of the mpr121)