update examples and doc to api change

This commit is contained in:
devsaurus 2015-10-11 10:41:12 +02:00
parent 28a04cc9c1
commit c3680f8291
7 changed files with 8 additions and 8 deletions

View File

@ -405,7 +405,7 @@ All other pins can be assigned to any available GPIO:
Also refer to the initialization sequence eg in [u8g_graphics_test.lua](lua_examples/u8glib/u8g_graphics_test.lua):
```lua
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 8)
```
@ -488,7 +488,7 @@ All other pins can be assigned to any available GPIO:
Also refer to the initialization sequence eg in [GraphicsTest.lua](lua_examples/ucglib/GraphicsRest.lua):
```lua
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 8)
```
#####Library usage

View File

@ -30,7 +30,7 @@ function init_spi_display()
local dc = 4 -- GPIO2
local res = 0 -- GPIO16
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 8)
disp = u8g.ssd1306_128x64_hw_spi(cs, dc, res)
end

View File

@ -29,7 +29,7 @@ function init_spi_display()
local dc = 4 -- GPIO2
local res = 0 -- GPIO16
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 8)
disp = u8g.ssd1306_128x64_hw_spi(cs, dc, res)
end

View File

@ -30,7 +30,7 @@ function init_spi_display()
local dc = 4 -- GPIO2
local res = 0 -- GPIO16
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 8)
disp = u8g.ssd1306_128x64_hw_spi(cs, dc, res)
end

View File

@ -8,7 +8,7 @@ function init_spi_display()
local dc = 4 -- GPIO2
local res = 0 -- GPIO16
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 8)
-- initialize the matching driver for your display
-- see app/include/ucg_config.h

View File

@ -8,7 +8,7 @@ function init_spi_display()
local dc = 4 -- GPIO2
local res = 0 -- GPIO16
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 8)
disp = ucg.ili9341_18x240x320_hw_spi(cs, dc, res)
end

View File

@ -8,7 +8,7 @@ function init_spi_display()
local dc = 4 -- GPIO2
local res = 0 -- GPIO16
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, spi.DATABITS_8, 8)
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 8)
disp = ucg.ili9341_18x240x320_hw_spi(cs, dc, res)
end