Go to advanced search

by bitbank
Tue Nov 02, 2021 10:50 am
Forum: SDK
Topic: OLED driver in C? [Solved]
Replies: 12
Views: 1247

Re: OLED driver in C? [Solved]

In the future, if you need help with any of my libraries, feel free to ask. All of my Arduino code is written in C with a C++ wrapper so that it's easy to use in any environment. ss_oled is one of my older efforts and is less obvious about it. My newer code (e.g. OneBitDisplay) has explicit examples...
by bitbank
Mon Feb 08, 2021 6:08 pm
Forum: General
Topic: Pico Reset Button and Power Cycle Fix
Replies: 29
Views: 1948

Re: Pico Reset Button and Power Cycle Fix

The bit I don't understand is why soldering a switch with wires on to a board is easier than soldering a three way header and dupont wiring to a Pi. Of course, either is a one off job, so in the scheme of things of the same order of magnitude. I have been using SWD /OpenOCD to develop some example ...
by bitbank
Mon Feb 08, 2021 3:14 pm
Forum: General
Topic: Pico Reset Button and Power Cycle Fix
Replies: 29
Views: 1948

Re: Pico Reset Button and Power Cycle Fix

I know I am probably preaching to the unconvertable, but why have you not considered the SWD system, where you don't need any buttons at all? I guess I am unconvertable in this case. I have considered it, but I honestly don't want to create more of a fiddly mess of wires to work on it. I work from ...
by bitbank
Mon Feb 08, 2021 2:45 pm
Forum: General
Topic: Pico Reset Button and Power Cycle Fix
Replies: 29
Views: 1948

Pico Reset Button and Power Cycle Fix

I will only be doing C programming on the Pico, so the lack of a reset button and potential abuse of the USB port didn't appeal to me. Adding a reset button was pretty simple and it was just luck that I happened to have some of the exact same SMD buttons on hand. The magnetic USB connector is from F...
by bitbank
Sun Feb 07, 2021 11:46 pm
Forum: General
Topic: I ported my AnimatedGIF and SPI LCD libs to Pico
Replies: 1
Views: 566

I ported my AnimatedGIF and SPI LCD libs to Pico

I spent some time porting some more of my Arduino code to run on the Pico this past week. Previously it was my BitBang_I2C and OLED libraries and today I released my AnimatedGIF and bb_spi_lcd library. The GIF library strikes a good balance between performance and memory usage and is faster than oth...
by bitbank
Mon Feb 01, 2021 9:58 pm
Forum: General
Topic: Interfacing with SSD1306 OLED displays via the C SDK
Replies: 25
Views: 5263

Re: Interfacing with SSD1306 OLED displays via the C SDK

OK, here's the thing. I scanned both a 32 height and a 64 height OLED using i2cdetect, and they both had I2C addresses of 0x3C. For some bizarre reason, there's a lot of code out there (including mine) that has 0x3D for the 32 pixel height OLED. I don't know where that number came from, but I don't...
by bitbank
Sat Jan 30, 2021 6:31 pm
Forum: General
Topic: Interfacing with SSD1306 OLED displays via the C SDK
Replies: 25
Views: 5263

Re: Interfacing with SSD1306 OLED displays via the C SDK

I ported my ss_oled library to run on the Pico C SDK. It uses the hardware I2C, but you can also enable bit banging for more flexibility. I'll port my SPI_LCD , GIF and JPEG libraries also.

https://youtu.be/qmBpuXuLEsU

I shared the code here:
https://github.com/bitbank2/Pi_Pico_C_Projects
by bitbank
Sun Apr 12, 2020 2:01 pm
Forum: General discussion
Topic: Multiple simultaneous OLED displays
Replies: 1
Views: 1348

Multiple simultaneous OLED displays

I've been working mostly on Arduino libraries lately and have made a few also run on the Raspberry Pi. I recently acquired a RPi4 and decided to port some more code back to the RPI. I just ported my ss_oled and BitBang_I2C libraries so that the RPI can now control any number of simultaneous OLED dis...
by bitbank
Wed May 15, 2019 6:32 am
Forum: C/C++
Topic: I just 'open sourced' my SSD1306 I2C OLED code
Replies: 17
Views: 8879

Re: I just 'open sourced' my SSD1306 I2C OLED code

I wanted to thank you for sharing your library! I have a few questions how do you customize the font? I would just want to add some custom symbols. Is it best to define a new font or extend one that exists? As I've never used an OLED until yesterday I was wondering how difficult is it to add suppor...
by bitbank
Tue May 14, 2019 8:12 pm
Forum: C/C++
Topic: I just 'open sourced' my SSD1306 I2C OLED code
Replies: 17
Views: 8879

Re: I just 'open sourced' my SSD1306 I2C OLED code

Thanks, what about utf-8 and multi-language. I was stuck with some library and I had to make my own also. I changed one libray that I found and create a table of characters using utf-8. To minimize the cost in rom size you could specify which character you want. https://github.com/danjperron/ssd133...
by bitbank
Tue May 14, 2019 1:28 pm
Forum: C/C++
Topic: I just 'open sourced' my SSD1306 I2C OLED code
Replies: 17
Views: 8879

Re: I just 'open sourced' my SSD1306 I2C OLED code

I've mostly been making updates to the Arduino version of this code, but today I just pushed an update which adds support for all common display sizes (128x64, 128x32, 64x32, 132x64). I also updated the sample code to make it run without modification on Raspbian and other Linux distros (different I2...
by bitbank
Fri Mar 01, 2019 4:16 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C scanner + detector
Replies: 0
Views: 384

I2C scanner + detector

I've written a 'smart' I2C scanner program that can identify the devices it detects. It does this by querying the "Who_Am_I" registers of chips which support it and otherwise using the power on state of the registers. It currently detects 18 common I2C devices. This is useful for several s...
by bitbank
Mon Sep 10, 2018 3:03 pm
Forum: Advanced users
Topic: IR laser ToF VL53L1X , C++, VL53L0X
Replies: 1
Views: 1627

Re: IR laser ToF VL53L1X , C++, VL53L0X

The code is not compatible, but Sparkfun recently released an open source library to support the VL53L1X with all of the magic numbers to make it work:

https://github.com/sparkfun/SparkFun_VL ... no_Library
by bitbank
Fri Aug 17, 2018 7:35 pm
Forum: Off topic discussion
Topic: With software, there's always a better way to do it
Replies: 24
Views: 5907

Re: With software, there's always a better way to do it

bitbank, With software, there's always a better way to do it True enough. The question might be: What do you mean by "better"? Is maximum performance the main criteria? Or perhaps quick and cheap development time. Or a simple clear expression of an algorithm (As is the case with the refer...
by bitbank
Thu Aug 16, 2018 4:15 pm
Forum: Off topic discussion
Topic: With software, there's always a better way to do it
Replies: 24
Views: 5907

Re: With software, there's always a better way to do it

2) Most of the optimization work I've done on open source code is not modifying the original code, but tossing it out and starting from a clean slate to replace it. I have made changes to FOSS code that ships in products and the project management team understands the GPL implications. I asked abou...
by bitbank
Thu Aug 16, 2018 4:07 pm
Forum: Off topic discussion
Topic: With software, there's always a better way to do it
Replies: 24
Views: 5907

Re: With software, there's always a better way to do it

"Optimization" to programming is rather like "efficiency" to engineering. It depends on what you want to "effish". Pure optimization may or may not be good, depending on context. Can the resultant code be maintained, and--especially--maintained by mere mortals, rather ...
by bitbank
Thu Aug 16, 2018 3:27 pm
Forum: Off topic discussion
Topic: With software, there's always a better way to do it
Replies: 24
Views: 5907

Re: With software, there's always a better way to do it

What on earth is that supposed to mean? The software that runs the world has been developed over that last 50 years and is now being optimised in hardware with every new processor (just wait for commercial scale quantum computers). The compilers (even good old COBOL) have been making code that's as...
by bitbank
Thu Aug 16, 2018 12:45 pm
Forum: Off topic discussion
Topic: With software, there's always a better way to do it
Replies: 24
Views: 5907

Re: With software, there's always a better way to do it

bitbank, It's not surprised that the OpenEXR code you talk about is not particularly optimized. It's a reference implementation and as such I would expect it to be written for maximum accuracy, understandability and portability. Whist your optimized version sounds like a grate piece of work I presu...
by bitbank
Thu Aug 16, 2018 12:41 pm
Forum: Off topic discussion
Topic: With software, there's always a better way to do it
Replies: 24
Views: 5907

Re: With software, there's always a better way to do it

The bigger picture - the software that runs the world falls in the same bucket. What on earth is that supposed to mean? The software that runs the world has been developed over that last 50 years and is now being optimised in hardware with every new processor (just wait for commercial scale quantum...
by bitbank
Thu Aug 16, 2018 12:37 pm
Forum: Off topic discussion
Topic: With software, there's always a better way to do it
Replies: 24
Views: 5907

Re: With software, there's always a better way to do it

Once you've taken the x264 open source library and optimised that run even faster then I think I might believe you. Until then I found your article lacking in any real statistical relevance. You've extrapolated from one open source library to say the same thing happens in tens of thousands of other...
by bitbank
Wed Aug 15, 2018 8:06 pm
Forum: Off topic discussion
Topic: With software, there's always a better way to do it
Replies: 24
Views: 5907

With software, there's always a better way to do it

My latest blog post on open source software and (lack of) optimization

http://bitbanksoftware.blogspot.com/201 ... r-way.html
by bitbank
Sat Aug 11, 2018 11:02 pm
Forum: Automation, sensing and robotics
Topic: C Library for VL53L0X time of flight distance sensor
Replies: 2
Views: 7263

Re: C Library for VL53L0X time of flight distance sensor

elicorrales wrote:
Tue Aug 07, 2018 1:47 pm
Hello,

do you know if your library would be compatible with VL53L1X?

thanks
Unfortunately, it's not. STMicro decided to create a new set of magic numbers to hide their hardware again.
by bitbank
Wed Aug 01, 2018 1:07 pm
Forum: Windows 10 for IoT
Topic: Win IoT Core on RPI being abandoned?
Replies: 8
Views: 4775

Re: Win IoT Core on RPI being abandoned?

W. H. Heydt wrote:
Wed Aug 01, 2018 2:17 am
It seems unlikely that a company the size of MS would use eBay to get rid of surplus equipment.
Follow the link and you'll see MS is the seller
by bitbank
Wed Aug 01, 2018 12:05 am
Forum: Windows 10 for IoT
Topic: Win IoT Core on RPI being abandoned?
Replies: 8
Views: 4775

Win IoT Core on RPI being abandoned?

Microsoft is in the process of liquidating their RPI 3B and 16GB sd card kits for $14 on Ebay: https://www.ebay.com/itm/Raspberry-Pi-3-Board-and-16GB-10class-with-NOOBS/283079338451 This could indicate 2 things: 1) They're clearing stock for the 3B+ 2) They're abandoning Windows IoT Core on the RPI ...
by bitbank
Wed May 23, 2018 7:23 pm
Forum: General discussion
Topic: Practical animation on I2C SSD1306 OLED displays
Replies: 0
Views: 842

Practical animation on I2C SSD1306 OLED displays

I'm working on an RPI + Arduino project for displaying complex animated sequences on I2C OLEDs at high frame rates. I've written a blog post about it and will be releasing the code as open-source shortly. My article mostly talks about how I got it to work on very constrained devices like the ATtiny8...

Go to advanced search