立即注册

micropython-microbit 中文社区

楼主: shaoziyang

makecode 软件包仓库

    [复制链接]

该用户从未签到

发表于 2018-4-23 11:08:27 | 显示全部楼层
I have try LCD1602 I2C package with microbit
https://github.com/microbit-makecode-packages/i2cLCD1602

Everything works fine, except 2 errors
- the text longer than 16 charaters will not continue to row2 properly
- when turn backlight on (after Turn off) there is a starnge character (see photo)

I used LCD1602 with PCF8574A

Here is my code

                               
登录/注册后可看大图


Strange character when turn backlight on

                               
登录/注册后可看大图
回复 支持 反对

使用道具 举报

  • TA的每日心情
    开心
    2019-5-12 11:06
  • 签到天数: 8 天

    [LV.3]偶尔看看II

     楼主| 发表于 2018-4-23 11:41:43 | 显示全部楼层
    narongporn 发表于 2018-4-23 11:08
    I have try LCD1602 I2C package with microbit
    https://github.com/microbit-makecode-packages/i2cLCD16 ...

    I will check it.
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2019-5-12 11:06
  • 签到天数: 8 天

    [LV.3]偶尔看看II

     楼主| 发表于 2018-4-23 23:04:37 | 显示全部楼层
    narongporn 发表于 2018-4-23 11:08
    I have try LCD1602 I2C package with microbit
    https://github.com/microbit-makecode-packages/i2cLCD16 ...

    backlight on/off bug is fixed, and add shr()/shl() feature.
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2018-4-24 11:47:29 | 显示全部楼层
    Thank you very much for your contribution.
    Do you have any plan to develop package for other module, such as  MAX7219 7-segment and MAX7219 matrix LED display?
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2019-5-12 11:06
  • 签到天数: 8 天

    [LV.3]偶尔看看II

     楼主| 发表于 2018-4-24 12:00:56 | 显示全部楼层
    narongporn 发表于 2018-4-24 11:47
    Thank you very much for your contribution.
    Do you have any plan to develop package for other module, ...

    MAX7219 is too old, I recommend use TM1650 or TM1637 instead, they are already in the packages.
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2018-4-24 12:17:12 | 显示全部楼层
    Thank you. I will try 1650/1637.

    I just tested the new command in LCD 1602, Shift Left and Right.
    and notice that it has a buffer of 40 characters per row that we can scroll text left and right.

    But when I show string longer than 40 characters.
    such as "Hello.My Name is Narongporn. Nice to meet you"

    the first 40 characters are displayed in row1, like this
    Hello.My Name is Narongporn. Nice to mee

    and the rest are in row2, like this
    t you

    Sorry for bothering you
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2019-5-12 11:06
  • 签到天数: 8 天

    [LV.3]偶尔看看II

     楼主| 发表于 2018-4-24 14:23:30 | 显示全部楼层
    narongporn 发表于 2018-4-24 12:17
    Thank you. I will try 1650/1637.

    I just tested the new command in LCD 1602, Shift Left and Right.

    because limit of the hardware, you can't display a long string, wrap mode is not a good method, it is not compatible with hardware shift left/right. LCD1602 is suited to show few words.

    If you need display more text, you may try OLED display or TFT LCD.
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2018-5-1 20:28:06 | 显示全部楼层
    shaoziyang 发表于 2018-4-4 16:10
    官方的方法需要创建一个本地服务器,比较复杂,也不方便。

    最简单的方法是在makecode中,创建一个新程序 ...

    就是增加了一个叫做custom.ts的文件,应该是自定义块,README.md里就可以输入一些帮助什么的
    顺便问一下,怎么添加enum.ts的那些文件?
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2018-5-9 00:11:22 | 显示全部楼层
    Can I use package I2C LCD1602 with the LCD panel 2004 (20 character 4 rows)
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2019-5-12 11:06
  • 签到天数: 8 天

    [LV.3]偶尔看看II

     楼主| 发表于 2018-5-9 00:17:01 | 显示全部楼层
    narongporn 发表于 2018-5-9 00:11
    Can I use package I2C LCD1602 with the LCD panel 2004 (20 character 4 rows)

    it need modify parameters in source code.
    回复 支持 反对

    使用道具 举报

    游客
    回复
    您需要登录后才可以回帖 登录 | 立即注册

    Archiver|手机版|小黑屋|micropython-microbit 中文社区

    GMT+8, 2019-9-21 03:31 , Processed in 0.096006 second(s), 18 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表