@@ -72,9 +72,9 int main() | |||
|
72 | 72 | printf("Sys Tick=%d\n\r",SysTick->VAL); |
|
73 | 73 | printf("Sys Tick=%d\n\r",SysTick->VAL); |
|
74 | 74 | printf("Sys Tick=%d\n\r",SysTick->VAL); |
|
75 |
ili9328paintFilRect(&lcd0, |
|
|
76 | while(1)monkDemo(); //randBoxesDemo(); | |
|
77 |
if(-1==ina226open(&ina33VSens,i2c2,INA226_MODE_SHUNT_VOLTAGE_CONTINUOUS|INA226_AVERAGES_16|INA226_BUS_CONV_8244us|INA226_SHUNT_CONV_8244us,0, |
|
|
75 | ili9328paintFilRect(&lcd0,0,0,240,320,LCD_COLOR_BLACK,1,LCD_COLOR_WHITE); | |
|
76 | //while(1)monkDemo(); //randBoxesDemo(); | |
|
77 | if(-1==ina226open(&ina33VSens,i2c2,INA226_MODE_SHUNT_VOLTAGE_CONTINUOUS|INA226_AVERAGES_16|INA226_BUS_CONV_8244us|INA226_SHUNT_CONV_8244us,0,0,15,1000000)) | |
|
78 | 78 | { |
|
79 | 79 | printf("Can't open 3.3V monitor\n\r"); |
|
80 | 80 | } |
@@ -3,8 +3,8 CONFIG += console | |||
|
3 | 3 | CONFIG -= qt |
|
4 | 4 | |
|
5 | 5 | #BSP = BEAGLESYNTH |
|
6 |
|
|
|
7 | BSP=M4Stick | |
|
6 | BSP = SOLAR_LFR_PSU | |
|
7 | #BSP=M4Stick | |
|
8 | 8 | include($$(libuc2)/bsp/cfg/$$BSP/bsp.pri) |
|
9 | 9 | #include($$(libuc2)/rules/stm32f4-arm-none-eabi-gcc/rules.pri) |
|
10 | 10 |
@@ -69,6 +69,18 void ili9328paint(LCD_t* LCD,void* buffe | |||
|
69 | 69 | } |
|
70 | 70 | } |
|
71 | 71 | |
|
72 | void ili9328paintFilCircMidPoint(LCD_t* LCD,uint16_t Xpos,uint16_t Ypos,uint16_t r,uint32_t contColor,uint16_t contSz,uint32_t fillColor) | |
|
73 | { | |
|
74 | if(contSz<r) | |
|
75 | { | |
|
76 | for(int i=0;i<(r/2);i++) | |
|
77 | { | |
|
78 | ||
|
79 | } | |
|
80 | } | |
|
81 | ||
|
82 | } | |
|
83 | ||
|
72 | 84 | void ili9328paintFilCirc(LCD_t* LCD,uint16_t Xpos,uint16_t Ypos,uint16_t r,uint32_t contColor,uint16_t contSz,uint32_t fillColor) |
|
73 | 85 | { |
|
74 | 86 | if(contSz<r) |
General Comments 0
You need to be logged in to leave comments.
Login now