File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ var (
1212 display = ili9341 .NewSpi (
1313 machine .SPI3 ,
1414 machine .LCD_DC ,
15- machine .LCD_CS ,
15+ machine .LCD_SS_PIN ,
1616 machine .LCD_RESET ,
1717 )
1818
19- backlight = machine .LCD_BACKLIGHT_CTR
19+ backlight = machine .LCD_BACKLIGHT
2020)
2121
2222func init () {
@@ -27,9 +27,9 @@ func init() {
2727 machine .OUTPUT_CTR_3V3 .Low ()
2828
2929 machine .SPI3 .Configure (machine.SPIConfig {
30- SCK : machine .LCD_SCK ,
31- MOSI : machine .LCD_MOSI ,
32- MISO : machine .LCD_MISO ,
30+ SCK : machine .LCD_SCK_PIN ,
31+ MOSI : machine .LCD_MOSI_PIN ,
32+ MISO : machine .LCD_MISO_PIN ,
3333 Frequency : 40000000 ,
3434 })
3535}
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ var (
1212 display = ili9341 .NewSpi (
1313 machine .SPI3 ,
1414 machine .LCD_DC ,
15- machine .LCD_CS ,
15+ machine .LCD_SS_PIN ,
1616 machine .LCD_RESET ,
1717 )
1818
19- backlight = machine .LCD_BACKLIGHT_CTR
19+ backlight = machine .LCD_BACKLIGHT
2020)
2121
2222func init () {
@@ -27,9 +27,9 @@ func init() {
2727 machine .OUTPUT_CTR_3V3 .Low ()
2828
2929 machine .SPI3 .Configure (machine.SPIConfig {
30- SCK : machine .LCD_SCK ,
31- MOSI : machine .LCD_MOSI ,
32- MISO : machine .LCD_MISO ,
30+ SCK : machine .LCD_SCK_PIN ,
31+ MOSI : machine .LCD_MOSI_PIN ,
32+ MISO : machine .LCD_MISO_PIN ,
3333 Frequency : 40000000 ,
3434 })
3535}
You can’t perform that action at this time.
0 commit comments