Go to advanced search

by Shazaam_Glomutron
Tue Jan 23, 2018 10:32 pm
Forum: C/C++
Topic: Debugging on a Pi
Replies: 9
Views: 14183

Re: Debugging on a Pi

As a professional software developer, please avoid using "print" statements as your systemic debugging approach. Doing this ha few times for quick fixes is fine and probably expedient. Basing your debugging policy on this practice is dangerous for a number of reasons. Turning off these print stateme...
by Shazaam_Glomutron
Wed Sep 13, 2017 11:43 pm
Forum: Bare metal
Topic: Reading from Multiple Encoders
Replies: 21
Views: 2410

Re: Reading from Multiple Encoders

This is straight forward. I added it this morning to my lib since I was also a bit curious. It should be quite clear from context: auto t0 = counter.clock() ; gpio.enable(mask,Rpi::Gpio::Event::Rise,true) ; gpio.reset(mask) ; // clears flags while (0 == (gpio.getEvents() & mask)) t0 = counter.clock...
by Shazaam_Glomutron
Wed Sep 13, 2017 11:33 pm
Forum: Bare metal
Topic: Reading from Multiple Encoders
Replies: 21
Views: 2410

Re: Reading from Multiple Encoders

You guys are amazing! :D :o We are quickly converging on the probability of doing all of this on bare metal (no OS). First, thank you for letting a noob post here with what may have seemed off topic. Second... the depth of your answers and discussions has been illuminating. Rock on baddasses! The en...
by Shazaam_Glomutron
Thu Aug 24, 2017 10:18 pm
Forum: Bare metal
Topic: Reading from Multiple Encoders
Replies: 21
Views: 2410

Reading from Multiple Encoders

I'm a total beginner when it comes to GPIO programming, which is unfortunate considering the project that I need to accomplish. I have a few questions for the group and they relate to how to get data from a specific encoder. Here's a link to the encoder (I'll be using the 12-bit encoder, for maximum...

Go to advanced search