fergofrog / microwave_usb_fan Goto Github PK
View Code? Open in Web Editor NEWProtocol reimplementation for Jaycar RGB USB LED fan (GH1031)
License: MIT License
Protocol reimplementation for Jaycar RGB USB LED fan (GH1031)
License: MIT License
I opened the example and tried it out. First, I hat do install Pillow, then I got this:
Traceback (most recent call last):
File "C:\Users\...\usbfan_test.py", line 3, in <module>
p = Program((TextMessage("Test1"),
File "C:\Users\...\AppData\Local\Programs\Python\Python37\lib\site-packages\usbfan\message.py", line 12, in __init__
join(basename(__file__), 'fonts', 'Arial.ttf'))
File "C:\Users\...\AppData\Local\Programs\Python\Python37\lib\site-packages\PIL\ImageFont.py", line 280, in truetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "C:\Users\...\AppData\Local\Programs\Python\Python37\lib\site-packages\PIL\ImageFont.py", line 145, in __init__
layout_engine=layout_engine)
OSError: cannot open resource
I tried to change the font to Arial (as it's saying above). Welp, what to do?
Btw using Py 3.7.2
Hi!
Can you please provide more details (specs and background) how to mod the fan with BJT to make it accept new messages on-the-fly?
Thank you!
From my digging around in the protocol, I can see no obvious way of how to just have a static message display without in/middle/out transitions?
Thanks
I've made a minimal example to try and get this working with WebHID but it fails with
Uncaught (in promise) DOMException: Failed to write the report.
I think maybe it's because Chrome thinks it's a protected device (eg keyboard) but I'm not sure how to check that for sure or if I've made a mistake
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.