Coder Social home page Coder Social logo

piogrammer / stm32-customhid-usbnumlock-led Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 1.19 MB

总有一些莎碧厂家自以为是的进行反人类创新,比如触摸屏换挡,触摸屏按键控制车车窗,再比如笔记本电脑配置了全键盘但阉割掉numlock指示灯

stm32-customhid-usbnumlock-led's Introduction

image I was pissed when I bought a new laptop a while back and it didn't have a NumLock indicator light. I mean, it's a $6500 laptop, and they couldn't spring for a few cents to include a super useful indicator light? Am I taking crazy pills here?image

I've seen a bunch of shill videos on Bilibili pretending to be reviews, and they get millions of views, you know, 'cause they're paid promotion by the company. If you watch those shill videos, you'll notice that not a single one of them mentions the fact that this laptop doesn't have a NumLock indicator light. And there's no close-up of that area on the shopping website(JD.COM) either. image

So when I got the damn thing in the mail, booted it up, and realized I was fxxked! I paid top dollar for a crippled laptop. It has a dedicated number pad, but no NumLock indicator light to show you whether the number pad is active. Listen, man, I know a lot of people buy gaming laptops just for gaming and don't care about productivity or design stuff, but I'm not one of those people. I often need to do stuff like debug equipment in the field, field coding and testing stuff like that. Not having a NumLock indicator light seriously hampers my productivity and pisses me off. So I spent a few hours making my own USB NumLock. It uses an STM32F042F6 microcontroller as the brains, which is nice because it doesn't need a crystal oscillator. The circuit is super simple: just one 1.5k resistor, a few 100nF 0603 capacitors, and a 6206-3v3 voltage regulator. The indicator part is made up of four 0603 white LEDs and two 0603 resistors for current limiting, with a value of 22 ohms or higher to prevent the LEDs from being too bright and hurting your eyes. I housed the circuit board in an old, busted 150mbps wireless network card case, and it looks pretty slick. I've tested it out, and it works like a charm. Thanks to the manufacturer's boneheadedness, I had to spend an extra ten bucks to fix their mistake. If you've also had the misfortune of buying one of these poorly designed laptops, you can make your own USB NumLock too. image

image

stm32-customhid-usbnumlock-led's People

Contributors

piogrammer avatar

Stargazers

 avatar Chen Wu avatar  avatar  avatar

Watchers

 avatar

Forkers

akyakult

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.