Unverified Commit 31bc72e0 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

ssd1306: add contrast control

parent 7a78aa58
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -46,6 +46,13 @@ function ssd1306.init(width, height)
	end
end

function ssd1306.contrast(contrast)
	local tab = {s_CONTRAST, contrast}
	for i, v in ipairs(tab) do
		ssd1306.wc(v)
	end
end

function ssd1306.show(fb)
	local txbuf = {0x40}
	for i = 1, ssd1306.w * ssd1306.h / 8, 128 do