Thnikk osu keypad issue1/3/2024 Therefore the effect is likely specific to touchpad scrolling. Today when I used chrome on android and on windows with a mouse I realized that the described overscroll effect does not appear there. Is there a way to have different colors for top and bottom overscroll?Įxample Code Sandbox Live (you can't test the overscroll in the sandbox): I tried using linear-gradient on the body and html-page or putting colored containers with negative margins at top or bottom, but that did not work. A simple fix for the top is to set the background-color of the body to black, but then I get the reverse problem for the bottom. So I want black overscroll for the top and white for the bottom. When you overscroll at the top the white background of the body shows for a brief moment, creating an unwanted contrast like this: Use config file for setting boot.My portfolio has a black background color at the top and a white one at the bottom.Separate config file for easy configuration.Scalable (8 keys is about the highest you can go without losing speed).This includes input pins, mapping, LED mode, LED colors (for custom mode), timeout, brightness, etc. ConfigurationĪll user-configurable settings are stored in config.py. This means that this code will be used for future models but will not be backwards compatible due to limitations in the currently used hardware. It's possible to use time.monotonic() instead, but this will lose acccuracy over time and subsequently cause the timers in the code to reduce in speed after about an hour.įor this reason, prototype RP2040 xiao based models are being used for developemnt. SAMD21 boards like my current (as of writing in 2022) xiao based keypads are not compatible. This code uses time.monotonic_ns(), which requires long integer support. If your keypad doesn't have easy access to the reset switch, you can enter bootloader mode by holding down the third key at boot. If you only want to enable one of them, mass storage is the first key and serial is the second. Enabling USB mass storage (required for updating) and serial (for debugging)īoth of these are disabled by default by boot.py and can be enabled by holding down the first two keys while plugging the keypad in. There may be some speed improvements to CircuitPython in the future that enable this as I think there's a lot of performance left on the table with something like the RP2040. It's fast enough for simple tasks, but I wouldn't recommend it for games. You're (currently) unable to leverage both cores on the RP2040.It's an interpreted language, so it's a lot slower.DownsidesĬircuitPython brings a lot of conveniences, but it also comes with some downsides. I've had keypads freak out when opening Cura (a 3D printing program) because of how it checks for serial devices, and if you don't have any other removable drives connected, it can be annoying to see one whenever the keypad is plugged in. This provides great ways to debug and configure the keypad without being stuck with a serial or mass storage device constantly being connected, potentially conflicting with other programs. One of the biggest things for me is the ability to disable CDC (serial) and UMS (mass storage) at runtime. This removes the need for any configurator, and gives more control to the user if they want to edit the code of the keypad without having to set up a development environment. One big advantage is being able to configure the keypad through a plaintext file. Even with less experience, adding features is a bit easier with python. Python is a very popular language and makes a lot of things a lot easier. I think I'm relatively compitent with Arduino, and I have much less experience with Python, but that's not the same for a lot of people. I've written a lot of different versions of firmware for my keypads over the years. It's way easier to configure since all settings are in an easy to edit config file that doesn't require recompliling the firmware.It's way simpler than the arduino unified-2022 code at only around 200 LOC instead of 900.There are two main reasons why this exists:
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |