From c3680f8291663dd9a9ee95335c7c0ac1d7c1f000 Mon Sep 17 00:00:00 2001 From: devsaurus Date: Sun, 11 Oct 2015 10:41:12 +0200 Subject: [PATCH] update examples and doc to api change --- README.md | 4 ++-- lua_examples/u8glib/u8g_bitmaps.lua | 2 +- lua_examples/u8glib/u8g_graphics_test.lua | 2 +- lua_examples/u8glib/u8g_rotation.lua | 2 +- lua_examples/ucglib/GraphicsTest.lua | 2 +- lua_examples/ucglib/HelloWorld.lua | 2 +- lua_examples/ucglib/UcgLogo.lua | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e3d9a358..4c4d0d17 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lua_examples/u8glib/u8g_bitmaps.lua b/lua_examples/u8glib/u8g_bitmaps.lua index e9892aba..340c0202 100644 --- a/lua_examples/u8glib/u8g_bitmaps.lua +++ b/lua_examples/u8glib/u8g_bitmaps.lua @@ -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 diff --git a/lua_examples/u8glib/u8g_graphics_test.lua b/lua_examples/u8glib/u8g_graphics_test.lua index 25dcbfc7..fe17d02e 100644 --- a/lua_examples/u8glib/u8g_graphics_test.lua +++ b/lua_examples/u8glib/u8g_graphics_test.lua @@ -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 diff --git a/lua_examples/u8glib/u8g_rotation.lua b/lua_examples/u8glib/u8g_rotation.lua index 8abbccd4..a6f43af0 100644 --- a/lua_examples/u8glib/u8g_rotation.lua +++ b/lua_examples/u8glib/u8g_rotation.lua @@ -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 diff --git a/lua_examples/ucglib/GraphicsTest.lua b/lua_examples/ucglib/GraphicsTest.lua index 0f94eb94..969e8387 100644 --- a/lua_examples/ucglib/GraphicsTest.lua +++ b/lua_examples/ucglib/GraphicsTest.lua @@ -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 diff --git a/lua_examples/ucglib/HelloWorld.lua b/lua_examples/ucglib/HelloWorld.lua index a28a63f2..fec69114 100644 --- a/lua_examples/ucglib/HelloWorld.lua +++ b/lua_examples/ucglib/HelloWorld.lua @@ -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 diff --git a/lua_examples/ucglib/UcgLogo.lua b/lua_examples/ucglib/UcgLogo.lua index 09e8555e..cb43a01e 100644 --- a/lua_examples/ucglib/UcgLogo.lua +++ b/lua_examples/ucglib/UcgLogo.lua @@ -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