libpruio (BB D/A - I/O fast and easy)

Headers, Bindings, Libraries for use with FreeBASIC, Please include example of use to help ensure they are tested and usable.
Post Reply
Posts: 3764
Joined: Dec 06, 2009 22:27
Location: N47°, E15°

Re: libpruio (BB D/A - I/O fast and easy)

Post by TJF »

My code for the SETDATAOUT and CLEARDATAOUT registers is working reliable for years. I see no reason why you should need to invert anything.

I guess you're facing multiple bugs compensating themself sometimes. In order to help, I need to check the complete source code (ie a reduced fragment, demonstrating the issue).

Following your hint, I'm considering to extend the project by a further example demonstrating that feature (stepper2) and perhaps adding a new function GPIO::flush() to set multiple GIPO output in a single step ...
Posts: 10
Joined: Apr 07, 2022 18:07

Re: libpruio (BB D/A - I/O fast and easy)

Post by aotta »

I didn't doubt a second your example was wrong, my questions was only to find bugs in my code! :lol:
Now I'm waiting for a new cape with sip pull resistors in the 5v side of level shifter, since I think my erratic reading depend from bad input more than error in coding.

Anyway, I think a lot of people may be interested in multiple pins managing, and a new example (and the new function!) Will be really appreciated!
Post Reply