16x24 Red LED Matrix Panel - Chainable HT1632C Driver , AVR help

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

16x24 Red LED Matrix Panel - Chainable HT1632C Driver , AVR help

Postby kevinm1 » Tue Jan 29, 2013 10:57 pm

I just recently purchased three of the display panels to chain together. I am using an atmega32 and using avr. I know the given library is in c++ and for use with arduino. I know that the arduino and c++ languages are based on C. Thus, I have been trying to move the code given by adafruit to C in AVR. The changes I made were the following: I made two structs, one to handle the ht1632 class attributes and one to handle the ht1632LedMatrix class attributes. I did this to attempt to mimic the object behavior in the library.
In addition, for the pinMode() I simply wrote to the DDR and for digitalWrite() I wrote to the PORT. In my case I was using PORTB.
I am using my usart for something else thus, it is not available to me for the matrix display. I was wondering if anyone had implemented this in C or are there any suggestions to get my display to work. Like I said the code compiles but the display does not work when I run the matrixdemo provided.

Thank you for the help
kevinm1
 
Posts: 5
Joined: Tue Jan 22, 2013 1:31 am

Re: 16x24 Red LED Matrix Panel - Chainable HT1632C Driver , AVR help

Postby kevinm1 » Wed Jan 30, 2013 1:35 am

Here is what I have done so far.
Attachments
ledmatrixpanel.7z
Zip file for adaptation to c
(52.07 KiB) Downloaded 20 times
kevinm1
 
Posts: 5
Joined: Tue Jan 22, 2013 1:31 am

Re: 16x24 Red LED Matrix Panel - Chainable HT1632C Driver , AVR help

Postby kevinm1 » Wed Jan 30, 2013 8:52 pm

I have still been working on this without success. However, I did find some mistakes and fixed them I had some silly mistakes setting and clearing specific bits. However, I fixed these and still has not worked. Once again I will attach the updated files of my project.
Attachments
ledmatrixpanel.7z
project files
(52.46 KiB) Downloaded 11 times
kevinm1
 
Posts: 5
Joined: Tue Jan 22, 2013 1:31 am


Return to Glowy things (LCD, LED, TFT, EL) purchased at Adafruit

Who is online

Users browsing this forum: No registered users and 8 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]