Jump to content

Recommended Posts

Posted

Hi all!

I've been scouring the forums and site looking to see if a C version of the matrix led source code exists...My goal is to use it for metering....

Has anyone come across it, or is this even feasible in C on the pic? 

Thanks!

Posted (edited)

I don't realy understand. Are you just looking for the Code to adapt it to a selfmade project or are you looking to for a solution to get meters generaly?

 

Edit: All code is availabe in a SVN Repository: svn://svnmios.midibox.org/mios32 http://svnmios.midibox.org

Edited by novski
Posted

Nice !

I'm also very interested in creating a LED matrix with a PIC18F in C !

I'll try to digest the code, and propose a stripped down version when i find some time.

Also i'm curious to know if a 16x16 leds is doable, and what would be the best hardware approach to do so ?

Any ideas are very welcome :)

Posted

Yes, 16x16 matrices can be handled in C w/o problems, especially because the actual DOUT transfers are handled by MIOS8 in background with an optimized assembly based routine.

 

The mechanism is always the same: SR_Service_Prepare() will be called before the SRIO scan (each mS)

In this function, increment a counter variable on each cycle, reset to 0 once it reaches 16

Transfer the new pattern (which corresponds to the counter and is ideally stored in an array) via MIOS_DOUT_SRSet

 

Please note: a 16x16 LED matrix means that the 16 LED rows will only be visible for 6.25% of the time - the brightness won't be optimal!

It's better to implement two 8x16 matrices instead (counter from 0..7)

 

Best Regards, Thorsten.

  • 2 months later...
Posted

well anyone had done this up to now?

 

i am starting programming today a 8x8 LED-Matrix (like SID-Matrix, but sid is ASM) , there are some usefull links here!

 

but have anyobody stripped down it already?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...