adapt examples to clock_div parameter
This commit is contained in:
parent
4cf5f37450
commit
55e8565a2d
|
@ -30,7 +30,7 @@ function init_spi_display()
|
||||||
local dc = 4 -- GPIO2
|
local dc = 4 -- GPIO2
|
||||||
local res = 0 -- GPIO16
|
local res = 0 -- GPIO16
|
||||||
|
|
||||||
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 0)
|
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
|
||||||
disp = u8g.ssd1306_128x64_hw_spi(cs, dc, res)
|
disp = u8g.ssd1306_128x64_hw_spi(cs, dc, res)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ function init_spi_display()
|
||||||
local dc = 4 -- GPIO2
|
local dc = 4 -- GPIO2
|
||||||
local res = 0 -- GPIO16
|
local res = 0 -- GPIO16
|
||||||
|
|
||||||
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 0)
|
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
|
||||||
disp = u8g.ssd1306_128x64_hw_spi(cs, dc, res)
|
disp = u8g.ssd1306_128x64_hw_spi(cs, dc, res)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ function init_spi_display()
|
||||||
local dc = 4 -- GPIO2
|
local dc = 4 -- GPIO2
|
||||||
local res = 0 -- GPIO16
|
local res = 0 -- GPIO16
|
||||||
|
|
||||||
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 0)
|
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
|
||||||
disp = u8g.ssd1306_128x64_hw_spi(cs, dc, res)
|
disp = u8g.ssd1306_128x64_hw_spi(cs, dc, res)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ function init_spi_display()
|
||||||
local dc = 4 -- GPIO2
|
local dc = 4 -- GPIO2
|
||||||
local res = 0 -- GPIO16
|
local res = 0 -- GPIO16
|
||||||
|
|
||||||
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 0)
|
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
|
||||||
|
|
||||||
-- initialize the matching driver for your display
|
-- initialize the matching driver for your display
|
||||||
-- see app/include/ucg_config.h
|
-- see app/include/ucg_config.h
|
||||||
|
|
|
@ -8,7 +8,7 @@ function init_spi_display()
|
||||||
local dc = 4 -- GPIO2
|
local dc = 4 -- GPIO2
|
||||||
local res = 0 -- GPIO16
|
local res = 0 -- GPIO16
|
||||||
|
|
||||||
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 0)
|
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
|
||||||
disp = ucg.ili9341_18x240x320_hw_spi(cs, dc, res)
|
disp = ucg.ili9341_18x240x320_hw_spi(cs, dc, res)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ function init_spi_display()
|
||||||
local dc = 4 -- GPIO2
|
local dc = 4 -- GPIO2
|
||||||
local res = 0 -- GPIO16
|
local res = 0 -- GPIO16
|
||||||
|
|
||||||
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 0)
|
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
|
||||||
disp = ucg.ili9341_18x240x320_hw_spi(cs, dc, res)
|
disp = ucg.ili9341_18x240x320_hw_spi(cs, dc, res)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue