New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: driver + example for HT16K33 LED driver #341
Conversation
🎉 Now we talking! :) But we need a couple of minor corrections regarding the code style.
CI error:
|
Thank you a lot for fixing metadata! |
Just use
, this will be enough. I have checked the ESP-IDF versions and yes, ESP_RETURN_ON_ERROR macro is defined only in > 4.4.0. So it will be necessary in source somewhere near the #ifndef ESP_RETURN_ON_ERROR
#define ESP_RETURN_ON_ERROR(x, log_tag, format, ...) do { \
esp_err_t err_rc_ = (x); \
if (unlikely(err_rc_ != ESP_OK)) { \
ESP_LOGE(log_tag, "%s(%d): " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
return err_rc_; \
} \
} while(0)
#endif |
how difficult is it? homebrew does not work well? not confirmed but the ruby scripts should run on any supported ruby version (3.x might not work, but should be easy to fix). |
@trombik , the problem with Ruby and MacOS is that MacOS have Ruby 2.x embedded.
Still, figuring out the options took some time. |
i'm reasonably sure that my ruby scripts should work with 2.x. what if you use the system's ruby? does not work?
i wrote them with portability in mind. i migrated to ruby 3.x now, but the time when I wrote, i was on ruby 2.7. i'm not sure what version apple is using, but it should work unless the ruby is so ancient, like 2.0. |
@trombik , I see. The problem was the “Gemfile.lock”. It contains Ruby version and prevents usage of earlier Ruby versions. Is it even needed in the repo? Looks like a candidate for “.gitignore”. |
what if you set bundle config set path ~/.bundle/vendor this tells bundle install ruby 2.7 works in my test environment. > ruby --version
ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [amd64-freebsd13]
> bundler --version
Bundler version 2.2.19
> bundle exec rake -C devtools -T
rake readme # Update README.md
rake rspec # Run rspec
rake rubocop # Run rubocop
rake test # Run all tests |
@UncleRus , I’m working on “esp_check.h” problem, you don’t have to spend your time in case you were going to :) I see you have done multiple fixes already, thank you a lot ! |
It's OK. I just got a little time and decided to spend it usefully :) |
Ok, I'm not jealous. |
Thank you! |
Any plans for the key scan feature? |
No, I don't have such plans. But you are welcome to contribute. |
Holtek HT16K33
Manufacturer link: https://www.holtek.com/productdetail/-/vg/HT16K33
Datasheet: https://www.holtek.com/documents/10179/116711/HT16K33v120.pdf
Mainly, I created it to drive Adafruit 7-segment display - https://www.adafruit.com/product/1270
I'm intending to drive a more high-level library to write to the display.
Actually, the driver is compatible with all HT16K33-based devices.
HT16K33 also have keyscan feature, but they are not yet supported in the driver.