diff --git a/Doxyfile b/Doxyfile index 22899c6..de6b927 100644 --- a/Doxyfile +++ b/Doxyfile @@ -38,7 +38,7 @@ PROJECT_NAME = "pico-ssd1306" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 0.1 +PROJECT_NUMBER = 0.2 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/docs/annotated.html b/docs/annotated.html index c4ad6c6..2533f13 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -22,7 +22,7 @@
pico-ssd1306 -  0.1 +  0.2
Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
diff --git a/docs/classes.html b/docs/classes.html index 1d96ef3..e263118 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -22,7 +22,7 @@
pico-ssd1306 -  0.1 +  0.2
Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
diff --git a/docs/files.html b/docs/files.html index 903782d..81aa56c 100644 --- a/docs/files.html +++ b/docs/files.html @@ -22,7 +22,7 @@
pico-ssd1306 -  0.1 +  0.2
Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
@@ -70,8 +70,7 @@
Here is a list of all documented files with brief descriptions:
- - +
 font.h
 out.h
 ssd1306.h
 ssd1306.h
diff --git a/docs/font_8h_source.html b/docs/font_8h_source.html index 1d76899..539f3f0 100644 --- a/docs/font_8h_source.html +++ b/docs/font_8h_source.html @@ -22,7 +22,7 @@
pico-ssd1306 -  0.1 +  0.2
Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
diff --git a/docs/functions.html b/docs/functions.html index 5619809..b21de37 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -22,7 +22,7 @@
pico-ssd1306 -  0.1 +  0.2
Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
diff --git a/docs/functions_vars.html b/docs/functions_vars.html index 018d531..b24edeb 100644 --- a/docs/functions_vars.html +++ b/docs/functions_vars.html @@ -22,7 +22,7 @@
pico-ssd1306 -  0.1 +  0.2
Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
diff --git a/docs/globals.html b/docs/globals.html index 687c100..4981ec9 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -22,7 +22,7 @@
pico-ssd1306 -  0.1 +  0.2
Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
@@ -76,6 +76,9 @@
  • ssd1306_clear_pixel() : ssd1306.h
  • +
  • ssd1306_clear_square() +: ssd1306.h +
  • ssd1306_command_t : ssd1306.h
  • @@ -109,6 +112,9 @@
  • ssd1306_draw_string_with_font() : ssd1306.h
  • +
  • ssd1306_hflip() +: ssd1306.h +
  • ssd1306_init() : ssd1306.h
  • @@ -121,9 +127,15 @@
  • ssd1306_poweron() : ssd1306.h
  • +
  • ssd1306_rotate() +: ssd1306.h +
  • ssd1306_show() : ssd1306.h
  • +
  • ssd1306_vflip() +: ssd1306.h +
  • diff --git a/docs/globals_enum.html b/docs/globals_enum.html index 1e75193..f3c75cd 100644 --- a/docs/globals_enum.html +++ b/docs/globals_enum.html @@ -22,7 +22,7 @@
    pico-ssd1306 -  0.1 +  0.2
    Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
    diff --git a/docs/globals_func.html b/docs/globals_func.html index 7f9fee8..58b87b1 100644 --- a/docs/globals_func.html +++ b/docs/globals_func.html @@ -22,7 +22,7 @@
    pico-ssd1306 -  0.1 +  0.2
    Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
    @@ -76,6 +76,9 @@
  • ssd1306_clear_pixel() : ssd1306.h
  • +
  • ssd1306_clear_square() +: ssd1306.h +
  • ssd1306_contrast() : ssd1306.h
  • @@ -106,6 +109,9 @@
  • ssd1306_draw_string_with_font() : ssd1306.h
  • +
  • ssd1306_hflip() +: ssd1306.h +
  • ssd1306_init() : ssd1306.h
  • @@ -118,9 +124,15 @@
  • ssd1306_poweron() : ssd1306.h
  • +
  • ssd1306_rotate() +: ssd1306.h +
  • ssd1306_show() : ssd1306.h
  • +
  • ssd1306_vflip() +: ssd1306.h +
  • diff --git a/docs/graph_legend.html b/docs/graph_legend.html index 43c50c4..45f15c6 100644 --- a/docs/graph_legend.html +++ b/docs/graph_legend.html @@ -22,7 +22,7 @@
    pico-ssd1306 -  0.1 +  0.2
    Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
    diff --git a/docs/graph_legend.png b/docs/graph_legend.png index 7e2cbcf..140796b 100644 Binary files a/docs/graph_legend.png and b/docs/graph_legend.png differ diff --git a/docs/index.html b/docs/index.html index d28c72f..6e0d459 100644 --- a/docs/index.html +++ b/docs/index.html @@ -22,7 +22,7 @@
    pico-ssd1306 -  0.1 +  0.2
    Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
    diff --git a/docs/search/all_6.js b/docs/search/all_6.js index 7d07e81..3f25b02 100644 --- a/docs/search/all_6.js +++ b/docs/search/all_6.js @@ -5,21 +5,25 @@ var searchData= ['ssd1306_5fbmp_5fshow_5fimage_5fwith_5foffset_9',['ssd1306_bmp_show_image_with_offset',['../ssd1306_8h.html#a1624a5ea20392d5614b84094e94160b0',1,'ssd1306.c']]], ['ssd1306_5fclear_10',['ssd1306_clear',['../ssd1306_8h.html#a82fc78675d097e37985dfa8c6672dd58',1,'ssd1306.c']]], ['ssd1306_5fclear_5fpixel_11',['ssd1306_clear_pixel',['../ssd1306_8h.html#ac328fa69f7ed547cb1cd62f9e65e8067',1,'ssd1306.c']]], - ['ssd1306_5fcommand_5ft_12',['ssd1306_command_t',['../ssd1306_8h.html#ad670652f20b55952a5ee9999a8e6b909',1,'ssd1306.h']]], - ['ssd1306_5fcontrast_13',['ssd1306_contrast',['../ssd1306_8h.html#a9ebe6c7807f3fd8f0eb006769bedbbac',1,'ssd1306.c']]], - ['ssd1306_5fdeinit_14',['ssd1306_deinit',['../ssd1306_8h.html#a8d7146d350e392ebc2556280d0fde1ca',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fchar_15',['ssd1306_draw_char',['../ssd1306_8h.html#a6de844e85019c62e2b094e5598bd18df',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fchar_5fwith_5ffont_16',['ssd1306_draw_char_with_font',['../ssd1306_8h.html#a48309e637d7621f73446b37d8728e085',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fempty_5fsquare_17',['ssd1306_draw_empty_square',['../ssd1306_8h.html#a4e33dec03c4741e2771987b20f026ebf',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fline_18',['ssd1306_draw_line',['../ssd1306_8h.html#a61855e5afa6908a4abda2336dfc6cefc',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fpixel_19',['ssd1306_draw_pixel',['../ssd1306_8h.html#a7c875fba9869eaa52e27cf325da57147',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fsquare_20',['ssd1306_draw_square',['../ssd1306_8h.html#a77731d3dfec84511f7b1b8205cc764c3',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fstring_21',['ssd1306_draw_string',['../ssd1306_8h.html#a4fa45ef8fd75cb3ff1b1c2378d064266',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fstring_5fwith_5ffont_22',['ssd1306_draw_string_with_font',['../ssd1306_8h.html#ad7aa75a6430ec1c501d233b3aaeafd8d',1,'ssd1306.c']]], - ['ssd1306_5finit_23',['ssd1306_init',['../ssd1306_8h.html#a56995249d6623b978ed8e943b4f156be',1,'ssd1306.c']]], - ['ssd1306_5finvert_24',['ssd1306_invert',['../ssd1306_8h.html#a2332fdd392f3e002a5f50e3c204c0e6a',1,'ssd1306.c']]], - ['ssd1306_5fpoweroff_25',['ssd1306_poweroff',['../ssd1306_8h.html#ab6b0fb58a6636463ec76c93c05e26e02',1,'ssd1306.c']]], - ['ssd1306_5fpoweron_26',['ssd1306_poweron',['../ssd1306_8h.html#a19eee3288fe5dc84fc95ff3a24d50d6a',1,'ssd1306.c']]], - ['ssd1306_5fshow_27',['ssd1306_show',['../ssd1306_8h.html#afc04cfe30a15dfd3cc0b55ae2a2f57af',1,'ssd1306.c']]], - ['ssd1306_5ft_28',['ssd1306_t',['../structssd1306__t.html',1,'']]] + ['ssd1306_5fclear_5fsquare_12',['ssd1306_clear_square',['../ssd1306_8h.html#abe48d45d9ddeee6d86624f2d98e6fa99',1,'ssd1306.c']]], + ['ssd1306_5fcommand_5ft_13',['ssd1306_command_t',['../ssd1306_8h.html#ad670652f20b55952a5ee9999a8e6b909',1,'ssd1306.h']]], + ['ssd1306_5fcontrast_14',['ssd1306_contrast',['../ssd1306_8h.html#a9ebe6c7807f3fd8f0eb006769bedbbac',1,'ssd1306.c']]], + ['ssd1306_5fdeinit_15',['ssd1306_deinit',['../ssd1306_8h.html#a8d7146d350e392ebc2556280d0fde1ca',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fchar_16',['ssd1306_draw_char',['../ssd1306_8h.html#a6de844e85019c62e2b094e5598bd18df',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fchar_5fwith_5ffont_17',['ssd1306_draw_char_with_font',['../ssd1306_8h.html#a48309e637d7621f73446b37d8728e085',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fempty_5fsquare_18',['ssd1306_draw_empty_square',['../ssd1306_8h.html#a4e33dec03c4741e2771987b20f026ebf',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fline_19',['ssd1306_draw_line',['../ssd1306_8h.html#a61855e5afa6908a4abda2336dfc6cefc',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fpixel_20',['ssd1306_draw_pixel',['../ssd1306_8h.html#a7c875fba9869eaa52e27cf325da57147',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fsquare_21',['ssd1306_draw_square',['../ssd1306_8h.html#a77731d3dfec84511f7b1b8205cc764c3',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fstring_22',['ssd1306_draw_string',['../ssd1306_8h.html#a4fa45ef8fd75cb3ff1b1c2378d064266',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fstring_5fwith_5ffont_23',['ssd1306_draw_string_with_font',['../ssd1306_8h.html#ad7aa75a6430ec1c501d233b3aaeafd8d',1,'ssd1306.c']]], + ['ssd1306_5fhflip_24',['ssd1306_hflip',['../ssd1306_8h.html#af478370e8f3a941ac5d5d5dc8b4a11b9',1,'ssd1306.c']]], + ['ssd1306_5finit_25',['ssd1306_init',['../ssd1306_8h.html#a56995249d6623b978ed8e943b4f156be',1,'ssd1306.c']]], + ['ssd1306_5finvert_26',['ssd1306_invert',['../ssd1306_8h.html#a2332fdd392f3e002a5f50e3c204c0e6a',1,'ssd1306.c']]], + ['ssd1306_5fpoweroff_27',['ssd1306_poweroff',['../ssd1306_8h.html#ab6b0fb58a6636463ec76c93c05e26e02',1,'ssd1306.c']]], + ['ssd1306_5fpoweron_28',['ssd1306_poweron',['../ssd1306_8h.html#a19eee3288fe5dc84fc95ff3a24d50d6a',1,'ssd1306.c']]], + ['ssd1306_5frotate_29',['ssd1306_rotate',['../ssd1306_8h.html#a5f7f4e389880f412318683f62cebeb2c',1,'ssd1306.c']]], + ['ssd1306_5fshow_30',['ssd1306_show',['../ssd1306_8h.html#afc04cfe30a15dfd3cc0b55ae2a2f57af',1,'ssd1306.c']]], + ['ssd1306_5ft_31',['ssd1306_t',['../structssd1306__t.html',1,'']]], + ['ssd1306_5fvflip_32',['ssd1306_vflip',['../ssd1306_8h.html#ac6a2f7faaf517e96cff3c47d8986144d',1,'ssd1306.c']]] ]; diff --git a/docs/search/all_7.js b/docs/search/all_7.js index aff6275..eff3870 100644 --- a/docs/search/all_7.js +++ b/docs/search/all_7.js @@ -1,4 +1,4 @@ var searchData= [ - ['width_29',['width',['../structssd1306__t.html#a62a19e1b4abdecca7b98a28a3f8bf314',1,'ssd1306_t']]] + ['width_33',['width',['../structssd1306__t.html#a62a19e1b4abdecca7b98a28a3f8bf314',1,'ssd1306_t']]] ]; diff --git a/docs/search/classes_0.js b/docs/search/classes_0.js index 026bbe5..a7653a1 100644 --- a/docs/search/classes_0.js +++ b/docs/search/classes_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['ssd1306_5ft_30',['ssd1306_t',['../structssd1306__t.html',1,'']]] + ['ssd1306_5ft_34',['ssd1306_t',['../structssd1306__t.html',1,'']]] ]; diff --git a/docs/search/enums_0.js b/docs/search/enums_0.js index e75c15c..95d040c 100644 --- a/docs/search/enums_0.js +++ b/docs/search/enums_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['ssd1306_5fcommand_5ft_59',['ssd1306_command_t',['../ssd1306_8h.html#ad670652f20b55952a5ee9999a8e6b909',1,'ssd1306.h']]] + ['ssd1306_5fcommand_5ft_67',['ssd1306_command_t',['../ssd1306_8h.html#ad670652f20b55952a5ee9999a8e6b909',1,'ssd1306.h']]] ]; diff --git a/docs/search/files_0.js b/docs/search/files_0.js index 7aabed6..5634389 100644 --- a/docs/search/files_0.js +++ b/docs/search/files_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['ssd1306_2eh_31',['ssd1306.h',['../ssd1306_8h.html',1,'']]] + ['ssd1306_2eh_35',['ssd1306.h',['../ssd1306_8h.html',1,'']]] ]; diff --git a/docs/search/functions_0.js b/docs/search/functions_0.js index 3f45ca6..f757267 100644 --- a/docs/search/functions_0.js +++ b/docs/search/functions_0.js @@ -1,22 +1,26 @@ var searchData= [ - ['ssd1306_5fbmp_5fshow_5fimage_32',['ssd1306_bmp_show_image',['../ssd1306_8h.html#a89d1f4edb34d5860df01a62512cc3949',1,'ssd1306.c']]], - ['ssd1306_5fbmp_5fshow_5fimage_5fwith_5foffset_33',['ssd1306_bmp_show_image_with_offset',['../ssd1306_8h.html#a1624a5ea20392d5614b84094e94160b0',1,'ssd1306.c']]], - ['ssd1306_5fclear_34',['ssd1306_clear',['../ssd1306_8h.html#a82fc78675d097e37985dfa8c6672dd58',1,'ssd1306.c']]], - ['ssd1306_5fclear_5fpixel_35',['ssd1306_clear_pixel',['../ssd1306_8h.html#ac328fa69f7ed547cb1cd62f9e65e8067',1,'ssd1306.c']]], - ['ssd1306_5fcontrast_36',['ssd1306_contrast',['../ssd1306_8h.html#a9ebe6c7807f3fd8f0eb006769bedbbac',1,'ssd1306.c']]], - ['ssd1306_5fdeinit_37',['ssd1306_deinit',['../ssd1306_8h.html#a8d7146d350e392ebc2556280d0fde1ca',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fchar_38',['ssd1306_draw_char',['../ssd1306_8h.html#a6de844e85019c62e2b094e5598bd18df',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fchar_5fwith_5ffont_39',['ssd1306_draw_char_with_font',['../ssd1306_8h.html#a48309e637d7621f73446b37d8728e085',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fempty_5fsquare_40',['ssd1306_draw_empty_square',['../ssd1306_8h.html#a4e33dec03c4741e2771987b20f026ebf',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fline_41',['ssd1306_draw_line',['../ssd1306_8h.html#a61855e5afa6908a4abda2336dfc6cefc',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fpixel_42',['ssd1306_draw_pixel',['../ssd1306_8h.html#a7c875fba9869eaa52e27cf325da57147',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fsquare_43',['ssd1306_draw_square',['../ssd1306_8h.html#a77731d3dfec84511f7b1b8205cc764c3',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fstring_44',['ssd1306_draw_string',['../ssd1306_8h.html#a4fa45ef8fd75cb3ff1b1c2378d064266',1,'ssd1306.c']]], - ['ssd1306_5fdraw_5fstring_5fwith_5ffont_45',['ssd1306_draw_string_with_font',['../ssd1306_8h.html#ad7aa75a6430ec1c501d233b3aaeafd8d',1,'ssd1306.c']]], - ['ssd1306_5finit_46',['ssd1306_init',['../ssd1306_8h.html#a56995249d6623b978ed8e943b4f156be',1,'ssd1306.c']]], - ['ssd1306_5finvert_47',['ssd1306_invert',['../ssd1306_8h.html#a2332fdd392f3e002a5f50e3c204c0e6a',1,'ssd1306.c']]], - ['ssd1306_5fpoweroff_48',['ssd1306_poweroff',['../ssd1306_8h.html#ab6b0fb58a6636463ec76c93c05e26e02',1,'ssd1306.c']]], - ['ssd1306_5fpoweron_49',['ssd1306_poweron',['../ssd1306_8h.html#a19eee3288fe5dc84fc95ff3a24d50d6a',1,'ssd1306.c']]], - ['ssd1306_5fshow_50',['ssd1306_show',['../ssd1306_8h.html#afc04cfe30a15dfd3cc0b55ae2a2f57af',1,'ssd1306.c']]] + ['ssd1306_5fbmp_5fshow_5fimage_36',['ssd1306_bmp_show_image',['../ssd1306_8h.html#a89d1f4edb34d5860df01a62512cc3949',1,'ssd1306.c']]], + ['ssd1306_5fbmp_5fshow_5fimage_5fwith_5foffset_37',['ssd1306_bmp_show_image_with_offset',['../ssd1306_8h.html#a1624a5ea20392d5614b84094e94160b0',1,'ssd1306.c']]], + ['ssd1306_5fclear_38',['ssd1306_clear',['../ssd1306_8h.html#a82fc78675d097e37985dfa8c6672dd58',1,'ssd1306.c']]], + ['ssd1306_5fclear_5fpixel_39',['ssd1306_clear_pixel',['../ssd1306_8h.html#ac328fa69f7ed547cb1cd62f9e65e8067',1,'ssd1306.c']]], + ['ssd1306_5fclear_5fsquare_40',['ssd1306_clear_square',['../ssd1306_8h.html#abe48d45d9ddeee6d86624f2d98e6fa99',1,'ssd1306.c']]], + ['ssd1306_5fcontrast_41',['ssd1306_contrast',['../ssd1306_8h.html#a9ebe6c7807f3fd8f0eb006769bedbbac',1,'ssd1306.c']]], + ['ssd1306_5fdeinit_42',['ssd1306_deinit',['../ssd1306_8h.html#a8d7146d350e392ebc2556280d0fde1ca',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fchar_43',['ssd1306_draw_char',['../ssd1306_8h.html#a6de844e85019c62e2b094e5598bd18df',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fchar_5fwith_5ffont_44',['ssd1306_draw_char_with_font',['../ssd1306_8h.html#a48309e637d7621f73446b37d8728e085',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fempty_5fsquare_45',['ssd1306_draw_empty_square',['../ssd1306_8h.html#a4e33dec03c4741e2771987b20f026ebf',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fline_46',['ssd1306_draw_line',['../ssd1306_8h.html#a61855e5afa6908a4abda2336dfc6cefc',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fpixel_47',['ssd1306_draw_pixel',['../ssd1306_8h.html#a7c875fba9869eaa52e27cf325da57147',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fsquare_48',['ssd1306_draw_square',['../ssd1306_8h.html#a77731d3dfec84511f7b1b8205cc764c3',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fstring_49',['ssd1306_draw_string',['../ssd1306_8h.html#a4fa45ef8fd75cb3ff1b1c2378d064266',1,'ssd1306.c']]], + ['ssd1306_5fdraw_5fstring_5fwith_5ffont_50',['ssd1306_draw_string_with_font',['../ssd1306_8h.html#ad7aa75a6430ec1c501d233b3aaeafd8d',1,'ssd1306.c']]], + ['ssd1306_5fhflip_51',['ssd1306_hflip',['../ssd1306_8h.html#af478370e8f3a941ac5d5d5dc8b4a11b9',1,'ssd1306.c']]], + ['ssd1306_5finit_52',['ssd1306_init',['../ssd1306_8h.html#a56995249d6623b978ed8e943b4f156be',1,'ssd1306.c']]], + ['ssd1306_5finvert_53',['ssd1306_invert',['../ssd1306_8h.html#a2332fdd392f3e002a5f50e3c204c0e6a',1,'ssd1306.c']]], + ['ssd1306_5fpoweroff_54',['ssd1306_poweroff',['../ssd1306_8h.html#ab6b0fb58a6636463ec76c93c05e26e02',1,'ssd1306.c']]], + ['ssd1306_5fpoweron_55',['ssd1306_poweron',['../ssd1306_8h.html#a19eee3288fe5dc84fc95ff3a24d50d6a',1,'ssd1306.c']]], + ['ssd1306_5frotate_56',['ssd1306_rotate',['../ssd1306_8h.html#a5f7f4e389880f412318683f62cebeb2c',1,'ssd1306.c']]], + ['ssd1306_5fshow_57',['ssd1306_show',['../ssd1306_8h.html#afc04cfe30a15dfd3cc0b55ae2a2f57af',1,'ssd1306.c']]], + ['ssd1306_5fvflip_58',['ssd1306_vflip',['../ssd1306_8h.html#ac6a2f7faaf517e96cff3c47d8986144d',1,'ssd1306.c']]] ]; diff --git a/docs/search/variables_0.js b/docs/search/variables_0.js index 8df80b6..293b5b7 100644 --- a/docs/search/variables_0.js +++ b/docs/search/variables_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['address_51',['address',['../structssd1306__t.html#ab889bd4c012a67785f381dce671badfd',1,'ssd1306_t']]] + ['address_59',['address',['../structssd1306__t.html#ab889bd4c012a67785f381dce671badfd',1,'ssd1306_t']]] ]; diff --git a/docs/search/variables_1.js b/docs/search/variables_1.js index 94bc46b..9c74d9e 100644 --- a/docs/search/variables_1.js +++ b/docs/search/variables_1.js @@ -1,5 +1,5 @@ var searchData= [ - ['buffer_52',['buffer',['../structssd1306__t.html#a1b1a335ef207a588217c7a948c8b9449',1,'ssd1306_t']]], - ['bufsize_53',['bufsize',['../structssd1306__t.html#a2774df9383033b99d80b56552bba0464',1,'ssd1306_t']]] + ['buffer_60',['buffer',['../structssd1306__t.html#a1b1a335ef207a588217c7a948c8b9449',1,'ssd1306_t']]], + ['bufsize_61',['bufsize',['../structssd1306__t.html#a2774df9383033b99d80b56552bba0464',1,'ssd1306_t']]] ]; diff --git a/docs/search/variables_2.js b/docs/search/variables_2.js index 685827f..3f90898 100644 --- a/docs/search/variables_2.js +++ b/docs/search/variables_2.js @@ -1,4 +1,4 @@ var searchData= [ - ['external_5fvcc_54',['external_vcc',['../structssd1306__t.html#a6a21df12c17f2611931c25121dae3df8',1,'ssd1306_t']]] + ['external_5fvcc_62',['external_vcc',['../structssd1306__t.html#a6a21df12c17f2611931c25121dae3df8',1,'ssd1306_t']]] ]; diff --git a/docs/search/variables_3.js b/docs/search/variables_3.js index 3a297de..70e99bc 100644 --- a/docs/search/variables_3.js +++ b/docs/search/variables_3.js @@ -1,4 +1,4 @@ var searchData= [ - ['height_55',['height',['../structssd1306__t.html#a966cf732ff8115ad6970853bdfed44a5',1,'ssd1306_t']]] + ['height_63',['height',['../structssd1306__t.html#a966cf732ff8115ad6970853bdfed44a5',1,'ssd1306_t']]] ]; diff --git a/docs/search/variables_4.js b/docs/search/variables_4.js index 9b5556f..399c7ff 100644 --- a/docs/search/variables_4.js +++ b/docs/search/variables_4.js @@ -1,4 +1,4 @@ var searchData= [ - ['i2c_5fi_56',['i2c_i',['../structssd1306__t.html#a445e0fb84b103da5b6414be70ea627ad',1,'ssd1306_t']]] + ['i2c_5fi_64',['i2c_i',['../structssd1306__t.html#a445e0fb84b103da5b6414be70ea627ad',1,'ssd1306_t']]] ]; diff --git a/docs/search/variables_5.js b/docs/search/variables_5.js index 544e97f..3e556f4 100644 --- a/docs/search/variables_5.js +++ b/docs/search/variables_5.js @@ -1,4 +1,4 @@ var searchData= [ - ['pages_57',['pages',['../structssd1306__t.html#a1c182da834a4e266af77684a66b6e0b8',1,'ssd1306_t']]] + ['pages_65',['pages',['../structssd1306__t.html#a1c182da834a4e266af77684a66b6e0b8',1,'ssd1306_t']]] ]; diff --git a/docs/search/variables_6.js b/docs/search/variables_6.js index bcb8720..71c9983 100644 --- a/docs/search/variables_6.js +++ b/docs/search/variables_6.js @@ -1,4 +1,4 @@ var searchData= [ - ['width_58',['width',['../structssd1306__t.html#a62a19e1b4abdecca7b98a28a3f8bf314',1,'ssd1306_t']]] + ['width_66',['width',['../structssd1306__t.html#a62a19e1b4abdecca7b98a28a3f8bf314',1,'ssd1306_t']]] ]; diff --git a/docs/ssd1306_8h.html b/docs/ssd1306_8h.html index 3b7b34d..b8ea440 100644 --- a/docs/ssd1306_8h.html +++ b/docs/ssd1306_8h.html @@ -22,7 +22,7 @@
    pico-ssd1306 -  0.1 +  0.2
    Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
    @@ -78,9 +78,9 @@
    - - - + + +
    @@ -141,6 +141,15 @@ void ssd1306_invert (ssd1306_t *p, uint8_t inv)  set invert display More...
      +void ssd1306_vflip (ssd1306_t *p, uint8_t val) + set vertical flip of display More...
    +  +void ssd1306_hflip (ssd1306_t *p, uint8_t val) + set horizontal flop of display More...
    +  +void ssd1306_rotate (ssd1306_t *p, uint8_t val) + set rotation of display More...
    +  void ssd1306_show (ssd1306_t *p)  display buffer, should be called on change More...
      @@ -154,8 +163,11 @@  draw pixel on buffer More...
      void ssd1306_draw_line (ssd1306_t *p, int32_t x1, int32_t y1, int32_t x2, int32_t y2) - draw pixel on buffer More...
    + draw line on buffer More...
      +void ssd1306_clear_square (ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height) + clear square at given position with given size More...
    +  void ssd1306_draw_square (ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height)  draw filled square at given position with given size More...
      @@ -370,6 +382,64 @@

    +

    ◆ ssd1306_clear_square()

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void ssd1306_clear_square (ssd1306_tp,
    uint32_t x,
    uint32_t y,
    uint32_t width,
    uint32_t height 
    )
    +
    + +

    clear square at given position with given size

    +
    Parameters
    + + + + + + +
    [in]p: instance of display
    [in]x: x position of starting point
    [in]y: y position of starting point
    [in]width: width of square
    [in]height: height of square
    +
    +
    +
    @@ -676,7 +746,7 @@

    -

    draw pixel on buffer

    +

    draw line on buffer

    Parameters
    @@ -913,6 +983,51 @@

    +

    ◆ ssd1306_hflip()

    + +
    +
    +

    [in]p: instance of display
    + + + + +
    + + + + + + + + + + + + + + + + + + +
    void ssd1306_hflip (ssd1306_tp,
    uint8_t val 
    )
    +
    +inline
    +
    + +

    set horizontal flop of display

    +
    Parameters
    + + + +
    [in]p: instance of display
    [in]val: val==0: disable flop, val!=0: flop
    +
    +
    +
    @@ -1092,6 +1207,51 @@

    +

    ◆ ssd1306_rotate()

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    void ssd1306_rotate (ssd1306_tp,
    uint8_t val 
    )
    +
    +inline
    +
    + +

    set rotation of display

    +
    Parameters
    + + + +
    [in]p: instance of display
    [in]val: val==0: disable rotation, val!=0: rotate
    +
    +
    +
    @@ -1118,6 +1278,51 @@

    +

    ◆ ssd1306_vflip()

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    void ssd1306_vflip (ssd1306_tp,
    uint8_t val 
    )
    +
    +inline
    +
    + +

    set vertical flip of display

    +
    Parameters
    + + + +
    [in]p: instance of display
    [in]val: val==0: disable flip, val!=0: flip
    +
    +
    +
    diff --git a/docs/ssd1306_8h__incl.map b/docs/ssd1306_8h__incl.map index c24d85e..0e4edf2 100644 --- a/docs/ssd1306_8h__incl.map +++ b/docs/ssd1306_8h__incl.map @@ -1,5 +1,5 @@ - - - + + + diff --git a/docs/ssd1306_8h__incl.png b/docs/ssd1306_8h__incl.png index 1225bb2..207151a 100644 Binary files a/docs/ssd1306_8h__incl.png and b/docs/ssd1306_8h__incl.png differ diff --git a/docs/ssd1306_8h_source.html b/docs/ssd1306_8h_source.html index cd7ea39..37d3228 100644 --- a/docs/ssd1306_8h_source.html +++ b/docs/ssd1306_8h_source.html @@ -22,7 +22,7 @@
    pico-ssd1306 -  0.1 +  0.2
    Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
    @@ -139,53 +139,65 @@
    120 
    128 void ssd1306_invert(ssd1306_t *p, uint8_t inv);
    129 
    -
    136 void ssd1306_show(ssd1306_t *p);
    -
    137 
    -
    144 void ssd1306_clear(ssd1306_t *p);
    -
    145 
    -
    153 void ssd1306_clear_pixel(ssd1306_t *p, uint32_t x, uint32_t y);
    -
    154 
    -
    162 void ssd1306_draw_pixel(ssd1306_t *p, uint32_t x, uint32_t y);
    -
    163 
    -
    173 void ssd1306_draw_line(ssd1306_t *p, int32_t x1, int32_t y1, int32_t x2, int32_t y2);
    -
    174 
    -
    184 void ssd1306_draw_square(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height);
    -
    185 
    -
    195 void ssd1306_draw_empty_square(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height);
    -
    196 
    -
    206 void ssd1306_bmp_show_image_with_offset(ssd1306_t *p, const uint8_t *data, const long size, uint32_t x_offset, uint32_t y_offset);
    -
    207 
    -
    215 void ssd1306_bmp_show_image(ssd1306_t *p, const uint8_t *data, const long size);
    -
    216 
    -
    227 void ssd1306_draw_char_with_font(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const uint8_t *font, char c);
    -
    228 
    -
    238 void ssd1306_draw_char(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, char c);
    -
    239 
    -
    250 void ssd1306_draw_string_with_font(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const uint8_t *font, const char *s );
    -
    251 
    -
    261 void ssd1306_draw_string(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const char *s);
    -
    262 
    -
    263 #endif
    -
    void ssd1306_bmp_show_image_with_offset(ssd1306_t *p, const uint8_t *data, const long size, uint32_t x_offset, uint32_t y_offset)
    draw monochrome bitmap with offset
    Definition: ssd1306.c:239
    +
    137 void ssd1306_vflip(ssd1306_t *p, uint8_t val);
    +
    138 
    +
    146 void ssd1306_hflip(ssd1306_t *p, uint8_t val);
    +
    147 
    +
    155 void ssd1306_rotate(ssd1306_t *p, uint8_t val);
    +
    156 
    +
    163 void ssd1306_show(ssd1306_t *p);
    +
    164 
    +
    171 void ssd1306_clear(ssd1306_t *p);
    +
    172 
    +
    180 void ssd1306_clear_pixel(ssd1306_t *p, uint32_t x, uint32_t y);
    +
    181 
    +
    189 void ssd1306_draw_pixel(ssd1306_t *p, uint32_t x, uint32_t y);
    +
    190 
    +
    200 void ssd1306_draw_line(ssd1306_t *p, int32_t x1, int32_t y1, int32_t x2, int32_t y2);
    +
    201 
    +
    211 void ssd1306_clear_square(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height);
    +
    212 
    +
    222 void ssd1306_draw_square(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height);
    +
    223 
    +
    233 void ssd1306_draw_empty_square(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height);
    +
    234 
    +
    244 void ssd1306_bmp_show_image_with_offset(ssd1306_t *p, const uint8_t *data, const long size, uint32_t x_offset, uint32_t y_offset);
    +
    245 
    +
    253 void ssd1306_bmp_show_image(ssd1306_t *p, const uint8_t *data, const long size);
    +
    254 
    +
    265 void ssd1306_draw_char_with_font(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const uint8_t *font, char c);
    +
    266 
    +
    276 void ssd1306_draw_char(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, char c);
    +
    277 
    +
    288 void ssd1306_draw_string_with_font(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const uint8_t *font, const char *s );
    +
    289 
    +
    299 void ssd1306_draw_string(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const char *s);
    +
    300 
    +
    301 #endif
    +
    void ssd1306_bmp_show_image_with_offset(ssd1306_t *p, const uint8_t *data, const long size, uint32_t x_offset, uint32_t y_offset)
    draw monochrome bitmap with offset
    Definition: ssd1306.c:257
    void ssd1306_poweron(ssd1306_t *p)
    turn on display
    Definition: ssd1306.c:126
    void ssd1306_invert(ssd1306_t *p, uint8_t inv)
    set invert display
    Definition: ssd1306.c:135
    -
    void ssd1306_draw_char_with_font(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const uint8_t *font, char c)
    draw char with given font
    Definition: ssd1306.c:191
    -
    void ssd1306_draw_empty_square(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
    draw empty square at given position with given size
    Definition: ssd1306.c:184
    -
    void ssd1306_draw_string(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const char *s)
    draw string with builtin font
    Definition: ssd1306.c:221
    +
    void ssd1306_draw_char_with_font(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const uint8_t *font, char c)
    draw char with given font
    Definition: ssd1306.c:209
    +
    void ssd1306_draw_empty_square(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
    draw empty square at given position with given size
    Definition: ssd1306.c:202
    +
    void ssd1306_draw_string(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const char *s)
    draw string with builtin font
    Definition: ssd1306.c:239
    bool ssd1306_init(ssd1306_t *p, uint16_t width, uint16_t height, uint8_t address, i2c_inst_t *i2c_instance)
    initialize display
    Definition: ssd1306.c:61
    -
    void ssd1306_draw_line(ssd1306_t *p, int32_t x1, int32_t y1, int32_t x2, int32_t y2)
    draw pixel on buffer
    Definition: ssd1306.c:155
    -
    void ssd1306_draw_char(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, char c)
    draw char with builtin font
    Definition: ssd1306.c:217
    -
    void ssd1306_draw_square(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
    draw filled square at given position with given size
    Definition: ssd1306.c:177
    -
    void ssd1306_draw_pixel(ssd1306_t *p, uint32_t x, uint32_t y)
    draw pixel on buffer
    Definition: ssd1306.c:149
    -
    void ssd1306_clear(ssd1306_t *p)
    clear display buffer
    Definition: ssd1306.c:139
    -
    void ssd1306_bmp_show_image(ssd1306_t *p, const uint8_t *data, const long size)
    draw monochrome bitmap
    Definition: ssd1306.c:283
    +
    void ssd1306_rotate(ssd1306_t *p, uint8_t val)
    set rotation of display
    Definition: ssd1306.c:147
    +
    void ssd1306_draw_line(ssd1306_t *p, int32_t x1, int32_t y1, int32_t x2, int32_t y2)
    draw line on buffer
    Definition: ssd1306.c:168
    +
    void ssd1306_draw_char(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, char c)
    draw char with builtin font
    Definition: ssd1306.c:235
    +
    void ssd1306_draw_square(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
    draw filled square at given position with given size
    Definition: ssd1306.c:196
    +
    void ssd1306_draw_pixel(ssd1306_t *p, uint32_t x, uint32_t y)
    draw pixel on buffer
    Definition: ssd1306.c:162
    +
    void ssd1306_clear(ssd1306_t *p)
    clear display buffer
    Definition: ssd1306.c:152
    +
    void ssd1306_bmp_show_image(ssd1306_t *p, const uint8_t *data, const long size)
    draw monochrome bitmap
    Definition: ssd1306.c:302
    void ssd1306_deinit(ssd1306_t *p)
    deinitialize display
    Definition: ssd1306.c:118
    void ssd1306_contrast(ssd1306_t *p, uint8_t val)
    set contrast of display
    Definition: ssd1306.c:130
    void ssd1306_poweroff(ssd1306_t *p)
    turn off display
    Definition: ssd1306.c:122
    -
    void ssd1306_clear_pixel(ssd1306_t *p, uint32_t x, uint32_t y)
    clear pixel on buffer
    Definition: ssd1306.c:143
    +
    void ssd1306_clear_square(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
    clear square at given position with given size
    Definition: ssd1306.c:190
    +
    void ssd1306_clear_pixel(ssd1306_t *p, uint32_t x, uint32_t y)
    clear pixel on buffer
    Definition: ssd1306.c:156
    +
    void ssd1306_vflip(ssd1306_t *p, uint8_t val)
    set vertical flip of display
    Definition: ssd1306.c:139
    ssd1306_command_t
    defines commands used in ssd1306
    Definition: ssd1306.h:39
    -
    void ssd1306_draw_string_with_font(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const uint8_t *font, const char *s)
    draw string with given font
    Definition: ssd1306.c:211
    -
    void ssd1306_show(ssd1306_t *p)
    display buffer, should be called on change
    Definition: ssd1306.c:287
    +
    void ssd1306_draw_string_with_font(ssd1306_t *p, uint32_t x, uint32_t y, uint32_t scale, const uint8_t *font, const char *s)
    draw string with given font
    Definition: ssd1306.c:229
    +
    void ssd1306_hflip(ssd1306_t *p, uint8_t val)
    set horizontal flop of display
    Definition: ssd1306.c:143
    +
    void ssd1306_show(ssd1306_t *p)
    display buffer, should be called on change
    Definition: ssd1306.c:306
    holds the configuration
    Definition: ssd1306.h:62
    uint8_t * buffer
    Definition: ssd1306.h:69
    uint8_t pages
    Definition: ssd1306.h:65
    diff --git a/docs/structssd1306__t.html b/docs/structssd1306__t.html index 0e1e727..7b485f3 100644 --- a/docs/structssd1306__t.html +++ b/docs/structssd1306__t.html @@ -22,7 +22,7 @@
    pico-ssd1306 -  0.1 +  0.2
    Simple library for using ssd1306 displays with the Raspberry Pi Pico and the pico-sdk.
    diff --git a/example/example.c b/example/example.c index 4fcbc89..eea9f58 100644 --- a/example/example.c +++ b/example/example.c @@ -105,5 +105,8 @@ void animation(void) { ssd1306_bmp_show_image(&disp, image_data, image_size); ssd1306_show(&disp); sleep_ms(2000); + ssd1306_rotate(&disp, 1); + sleep_ms(2000); + ssd1306_rotate(&disp, 0); } } diff --git a/ssd1306.c b/ssd1306.c index 1ce7d9d..b8e6c6d 100644 --- a/ssd1306.c +++ b/ssd1306.c @@ -136,6 +136,19 @@ inline void ssd1306_invert(ssd1306_t *p, uint8_t inv) { ssd1306_write(p, SET_NORM_INV | (inv & 1)); } +inline void ssd1306_vflip(ssd1306_t *p, uint8_t val) { + ssd1306_write(p, SET_COM_OUT_DIR | (!val << 3)); +} + +inline void ssd1306_hflip(ssd1306_t *p, uint8_t val) { + ssd1306_write(p, SET_SEG_REMAP | (!val & 1)); +} + +inline void ssd1306_rotate(ssd1306_t *p, uint8_t val) { + ssd1306_vflip(p, val); + ssd1306_hflip(p, val); +} + inline void ssd1306_clear(ssd1306_t *p) { memset(p->buffer, 0, p->bufsize); } diff --git a/ssd1306.h b/ssd1306.h index 138cef3..2461b1a 100644 --- a/ssd1306.h +++ b/ssd1306.h @@ -127,6 +127,33 @@ void ssd1306_contrast(ssd1306_t *p, uint8_t val); */ void ssd1306_invert(ssd1306_t *p, uint8_t inv); +/** + @brief set vertical flip of display + + @param[in] p : instance of display + @param[in] val : val==0: disable flip, val!=0: flip + +*/ +void ssd1306_vflip(ssd1306_t *p, uint8_t val); + +/** + @brief set horizontal flop of display + + @param[in] p : instance of display + @param[in] val : val==0: disable flop, val!=0: flop + +*/ +void ssd1306_hflip(ssd1306_t *p, uint8_t val); + +/** + @brief set rotation of display + + @param[in] p : instance of display + @param[in] val : val==0: disable rotation, val!=0: rotate + +*/ +void ssd1306_rotate(ssd1306_t *p, uint8_t val); + /** @brief display buffer, should be called on change