HT16K33 led 14 segment backpack


Results 1 to 9 of 9

Threaded View

  1. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: HT16K33 led 14 segment backpack

    not only that row[0] to [4] are set to 0 still

    Code:
    ;pic 12F1840#CONFIG 
       __config _CONFIG1, _FOSC_INTOSC & _MCLRE_ON & _CP_OFF & _CPD_OFF  
      __config _CONFIG2, _PLLEN_OFF & _LVP_OFF
    #ENDCONFIG
    OSCCON = %01110000 
    DEFINE OSC 8 TRISA = %000000      
    ANSELA = 0				'Digital  
    scl var portA.2 
    sda var portA.1
      SADD VAR BYTE 
    ROW VAR WORD[4] 
    COL var byte 
    TMP VAR WORD 
    CLEAR 
    INIT:
     i2cwrite sda,scl,$e0,[$21] 'on  
    i2cwrite sda,scl,$e0,[$81] 'blink off 
    i2cwrite sda,scl,$e0,[$E8] 'HALF BRIGHT 
    i2cwrite sda,scl,$e0,[$A0] 'NO INT
     i2cwrite sda,scl,$e0,[SADD,ROW,ROW,ROW,ROW] ;CLEAR
    pause 200;send something
    row[0]=5:row[1]=4:row[3]=2:row[0]=1
    SADD=1 ; not sure about this might need to be 0
    i2cwrite sda,scl,$70,[SADD,ROW[0],ROW[1],ROW[2],ROW[3]]
    Last edited by richard; - 11th April 2021 at 15:15.
    Warning I'm not a teacher

Similar Threads

  1. 7 segment led displays
    By raybel in forum FAQ - Frequently Asked Questions
    Replies: 3
    Last Post: - 12th September 2013, 17:22
  2. Seven Segment LED
    By Brian in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 5th May 2011, 04:26
  3. Replies: 3
    Last Post: - 5th December 2008, 15:00
  4. Dual 7-segment LED display counter
    By mosbc69 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2008, 22:53
  5. Dual 7-Segment LED Display
    By erice1984 in forum Schematics
    Replies: 14
    Last Post: - 2nd July 2007, 23:51

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts