DogFlu66
Member
Hello,
I've been searching for PCBs that include the TM1651 to carry out practical exercises, but it seems that the only available product is an LED battery level indicator that uses the TM1651.
The TM1651 integrated circuit allows controlling 4-digit 7-segment displays and reading up to 6 keys. Writing the library for this chip has been particularly easy because it is similar to the TM1637. Therefore, I adapted the library I previously wrote for the TM1637 to work with the TM1651.
I removed all the functions related to digit control and key reading, and then implemented specific functions to control the LEDs included on the PCB.
I am sharing all the necessary files to experiment with the TM1651-based battery level indicator for a while.
Initialize the TM1651.
TM1651_OutSeg(Seg As Byte, sBit As Bit)
Outputs data to a specific segment of the display (0 to 6, On/Off bit).
TM1651_Clear()
Clears all segments of the display, turning them off.
TM1651_Full()
Turns on all segments of the display.
TM1651_Bright(Bright As Byte)
Adjusts the brightness of the display (0 to 7).
I've been searching for PCBs that include the TM1651 to carry out practical exercises, but it seems that the only available product is an LED battery level indicator that uses the TM1651.
The TM1651 integrated circuit allows controlling 4-digit 7-segment displays and reading up to 6 keys. Writing the library for this chip has been particularly easy because it is similar to the TM1637. Therefore, I adapted the library I previously wrote for the TM1637 to work with the TM1651.
I removed all the functions related to digit control and key reading, and then implemented specific functions to control the LEDs included on the PCB.
I am sharing all the necessary files to experiment with the TM1651-based battery level indicator for a while.
TM1651 Library:
TM1651_Init()Initialize the TM1651.
TM1651_OutSeg(Seg As Byte, sBit As Bit)
Outputs data to a specific segment of the display (0 to 6, On/Off bit).
TM1651_Clear()
Clears all segments of the display, turning them off.
TM1651_Full()
Turns on all segments of the display.
TM1651_Bright(Bright As Byte)
Adjusts the brightness of the display (0 to 7).