Per Mårtensson 1 year ago
parent
commit
d07bb4bbc1
2 changed files with 22 additions and 0 deletions
  1. 13 0
      sw/DC_LOAD/include/config.h
  2. 9 0
      sw/DC_LOAD/include/screen.h

+ 13 - 0
sw/DC_LOAD/include/config.h

@@ -0,0 +1,13 @@
+#ifndef DCLOAD_CONFIG_H
+#define DCLOAD_CONFIG_H
+
+#define I2C_EPROM_ADDRESS       0x57
+#define I2C_MCP4725_ADDRESS     0x61            //the DAC I2C address with MCP4725 pin A0 set high
+#define I2C_MCP79410_ADDRESS    0x6f            //0x6f is the default address for the MCP79410 Real Time Clock IC
+#define I2C_MCP342x_ADDRESS     0x68            //0x68 is the default address for the MCP3426 device
+#define rxPin 8
+#define txPin 7
+#define col_red                 63488
+#define col_green               1024
+#define col_gray                50712
+#endif // DCLOAD_CONFIG_H

+ 9 - 0
sw/DC_LOAD/include/screen.h

@@ -0,0 +1,9 @@
+#ifndef DCLOAD_SCREEN_H
+#define DCLOAD_SCREEN_H
+void screen_clear(char empty);
+void print_chars(int x1,int z, char * text,int len);
+void print_chars2(int x1,int len);
+void print_char(int x1,int z, char text);
+void print_line(int x1);
+void writeNum2(char *  command, uint16_t  txt);
+#endif // DCLOAD_SCREEN_H