From a9b501a2d2ce242c181c2cd5f5d1f86ba7150eec Mon Sep 17 00:00:00 2001 From: pcremades Date: Fri, 11 Apr 2025 11:54:48 -0300 Subject: [PATCH] Added a 1602 LCD with I2C module --- vitamins/displays.scad | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/vitamins/displays.scad b/vitamins/displays.scad index 52cf4f4..4dd3b69 100644 --- a/vitamins/displays.scad +++ b/vitamins/displays.scad @@ -46,6 +46,17 @@ LCD1602APCB = pcb("", "", [80, 36, 1.65], hole_d = 2.9, land_d = 5, colour = "gr ] ); +LCD1602APCBI2C = pcb("", "", [80, 36, 1.65], hole_d = 2.9, land_d = 5, colour = "green", + holes = [[-2.5, -2.5], [-2.5, 2.5], [2.5, 2.5], [2.5, -2.5]], + components = [ + [-27.05, - 2.5, 0, "2p54header", 16, 1], + [ -27.05, -10.0, 0, "pcb", 3, I2C_LCD_Backpack], + ], + grid = [ + 52.95 - inch(0.75), 36 - 2.5, 16, 1, silver, inch(0.1), inch(0.1), + ] +); + LCD1602A = ["LCD1602A", "LCD display 1602A", 71.3, 24.3, 7.0, LCD1602APCB, [0, 0, 0], // pcb offst [[-64.5 / 2, -14.5 / 2], [64.5 / 2, 14.5 / 2, 0.6]], // aperture @@ -54,6 +65,14 @@ LCD1602A = ["LCD1602A", "LCD display 1602A", 71.3, 24.3, 7.0, LCD1602APCB, [], // clearance need for the ts ribbon ]; +LCD1602AI2C = ["LCD1602A", "LCD display 1602A", 71.3, 24.3, 7.0, LCD1602APCBI2C, + [0, 0, 0], // pcb offst + [[-64.5 / 2, -14.5 / 2], [64.5 / 2, 14.5 / 2, 0.6]], // aperture + [], // touch screen + 0, // thread length + [], // clearance need for the ts ribbon + ]; + LCD2004APCB = pcb("", "", [98, 60, 1.65], hole_d = 2.9, land_d = 5, colour = "green", holes = [[-2.5, -2.5], [-2.5, 2.5], [2.5, 2.5], [2.5, -2.5]], components = [