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?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...