Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
tinyI2C_1768.h
00001 /* 00002 tinyI2C_1768.h 00003 */ 00004 00005 static const uint8_t chip_id = ID_LPC1768; 00006 00007 #define isI2C1 // unused(always enabled) 00008 I2C dev1(p28, p27); 00009 00010 #define isI2C2 00011 I2C dev2( p9, p10 ); 00012 #undef isI2C3 00013 #undef isI2C4 00014 00015 #define isUART 00016 #undef isUSBUART 00017 Serial pc(USBTX,USBRX); 00018 00019 #define isHWSPI 00020 #undef isSWSPI 00021 SPI _spi(p5, p6, p7); // mosi, miso, sclk 00022 DigitalOut _cs(p8); // CS 00023 00024 #define isGPIO0 // unused(always enabled) 00025 DigitalInOut _GPIO00(p11); 00026 DigitalInOut _GPIO01(p12); 00027 DigitalInOut _GPIO02(p13); 00028 DigitalInOut _GPIO03(p14); 00029 DigitalInOut _GPIO04(p15); 00030 DigitalInOut _GPIO05(p16); 00031 DigitalInOut _GPIO06(p17); 00032 DigitalInOut _GPIO07(p18); 00033 00034 #define isGPIO1 00035 DigitalInOut _GPIO10(p19); 00036 DigitalInOut _GPIO11(p20); 00037 DigitalInOut _GPIO12(p21); 00038 DigitalInOut _GPIO13(p22); 00039 DigitalInOut _GPIO14(p23); 00040 DigitalInOut _GPIO15(p24); 00041 DigitalInOut _GPIO16(p25); 00042 DigitalInOut _GPIO17(p26);
Generated on Wed Jul 13 2022 23:08:59 by
1.7.2