Display - HT16K33 commands

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
user1234
New user
Posts: 2
Joined: 23 Dec 2024, 16:24

Display - HT16K33 commands

#1 Post by user1234 » 23 Dec 2024, 16:31

Where i i can find command or samples for Display - HT16K33 ?

at the Info site:
https://espeasy.readthedocs.io/en/lates ... /P057.html

is nothing .


i found only a topic from a user with this " example: MNUM,CLEAR,3,3,0,9,5 will display 33:95) " ?????

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Display - HT16K33 commands

#2 Post by Ath » 23 Dec 2024, 16:47

Ah, documentation on that plugin is a bit sparse. I'll see if I can improve that a bit, soon.

The source code is of course the best documentation, but not for all users very readable :lol:

A short extract, straight from the source code file:
// List of commands:
// (1) M,<param>,<param>,<param>, ... with decimal values
// (2) MX,<param>,<param>,<param>, ... with hexadecimal values
// (3) MNUM,<param>,<param>,<param>, ... with decimal values for 7-segment displays
// (4) MPRINT,<text> with decimal values for 7-segment displays
// (5) MBR,<0-15> set display brightness, between 0 and 15

// List of M* params:
// (a) <value>
// Writes a decimal / hexadecimal (0...0xFFFF) values to actual segment starting with 0
// (b) <seg>=<value>
// Writes a decimal / hexadecimal (0...0xFFFF) values to given segment (0...7)
// (c) "CLEAR"
// Set all LEDs to 0.
// (d) "TEST"
// Set test pattern to LED buffer.
// (e) "LOG"
// Print LED buffer to log output.

// Examples:
// MX,AA,55,AA,55,AA,55,AA,55 Set chess pattern to LED buffer
// MNUM,CLEAR,1,0 Clear the LED buffer and then set 0x06 to 1st segment and 0x3F to 2nd segment
/Ton (PayPal.me)

user1234
New user
Posts: 2
Joined: 23 Dec 2024, 16:24

Re: Display - HT16K33 commands

#3 Post by user1234 » 23 Dec 2024, 18:50

ok, thanks, I will try it.

And how i can select/adress the different devices (Dot 8x8 Matrix digits) with different I2C Adress ?

http://192.168.5.203/control?cmd=MX,AA, ... A,55,AA,55

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Display - HT16K33 commands

#4 Post by Ath » 23 Dec 2024, 19:31

user1234 wrote: 23 Dec 2024, 18:50 And how i can select/adress the different devices (Dot 8x8 Matrix digits) with different I2C Adress ?

http://192.168.5.203/control?cmd=MX,AA, ... A,55,AA,55
You can prefix the command with a taskname and a period/dot, like this:

Code: Select all

http://192.168.5.203/control?cmd=display1.MX,AA,55,AA,55,AA,55,AA,55
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests