Maple Mini, HD44780 with I2C don't work :(

Posted on
  • Hi!

    I have chinese copy of Maple Mini with Espruino firmware 1v85.134. I'm trying to connect the LCD HD44780 with I2C (PCF8574T) and get and get the error :(

    Wiring LCD -> Maple Mini:
    GND -> GND
    VCC -> Vcc
    SDA -> PIN 15 (I2C1 SDA)
    SDL -> PIN 16 (I2C1 SDL)

    Code:

    I2C1.setup({scl:B6, sda:B7});
    var lcd = require("HD44780").connectI2C(I2C1);
    lcd.print("Hello World!");

    Error:

    1v85.134 Copyright 2016 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    echo(0);
    ERROR: Pin A2 is not capable of I2C1 SCL
    Suitable pins are:
    A12 undefined(AF)
    Uncaught Error: I2C device not responding
    at line 2 col 13
    g|4,g|4,g,g])
    in function "a" called from line 1 col 7
    a(51,1);a(50,1);a(40,1);a(12,1);a(6,1);a­(1,1);return{write:a...
    in function "h" called from line 2 col 15
    g|4,g|4,g,g])})
    in function "connectI2C" called from line 1 col 45
    var lcd = require("HD44780").connectI2C(I2C1);
    Uncaught Error: Field or method "print" does not already exist, and can't create it on undefined
    at line 1 col 4
    lcd.print("Hello World!");
    =undefined

  • I think it's because the Maple uses a different set of pin names to the actual STM32 pins. You'd need to use D0..D33 (I think) - the mapping is this one: https://github.com/espruino/Espruino/blo­b/master/boards/MAPLEMINI.py#L63-97

  • I tried to use I2C1.setup({scl:D16, sda:D15})... PD16 and PD15; P16 and P15; PB6 and PB7...
    these values result in an error:

    Uncaught ReferenceError: "PIN" is not defined

    where PIN is D16, PD16, P16, PB6...

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Maple Mini, HD44780 with I2C don't work :(

Posted by Avatar for dem9968 @dem9968

Actions