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.
Diff: VL6160SRC/6180a1.c
- Revision:
- 1:b4bdb0356af0
- Parent:
- 0:1da5e4bcb8e5
diff -r 1da5e4bcb8e5 -r b4bdb0356af0 VL6160SRC/6180a1.c
--- a/VL6160SRC/6180a1.c Wed Oct 28 14:51:47 2020 +0000
+++ b/VL6160SRC/6180a1.c Wed Oct 28 16:06:15 2020 +0000
@@ -283,7 +283,7 @@
* F401 valid may not work for over device
*/
-#ifdef 0
+#if 0
void XNUCLEO6180XA1_I2C1_Init(I2C_HandleTypeDef *hi2c1) {
GPIO_InitTypeDef GPIO_InitStruct;
uint8_t ExpanderID[2];
@@ -535,7 +535,7 @@
#undef S6
#undef DP
-#ifdef 0
+#if 0
static void _V1_DisplayString(const char *str, int SegDelayMs){
int i;
const char *pc;
@@ -593,7 +593,7 @@
-#ifdef 0
+#if 0
static void _V1_GPIO_Init(void) {
GPIO_InitTypeDef GPIO_InitStruct;
@@ -651,7 +651,7 @@
static void _V2_GPIO_Init(){
uint16_t PadDir;
-#ifdef 0
+#if 0
GPIO_InitTypeDef GPIO_InitStruct;
__GPIOA_CLK_ENABLE();
@@ -684,7 +684,7 @@
V2_ExpanderWR(GPSR, (uint8_t*)&_V2PadVal, 2);
}
-#ifdef 0
+#if 0
static void _V1_DisplayOff() {
int i;
for( i=0; i<4; i++ ){
@@ -693,7 +693,7 @@
}
#endif
-#ifdef 0
+#if 0
/* set 7 segment bus to display decode "value" */
static void _V1_Set7Segment(const uint8_t value) {
int i;
