🖋️
Posts tagged with :lower_left_fountain_pen:
spade-serial
and spade-upload
! They can upload games to a #C02UN35M7LG| or whatever device running Spade. I spent a lot of time writing the tests and documentation.. I wanted to get it right since this is my first time, so I know what to do in the future. spade-serial
is the crate that does the actual work while spade-upload
is the application that makes use of the crate. It's useful to me because I use Safari on my MacBook and Firefox on my other laptop, neither of which implement the Web USB API, so this provides a way for me to put games on my Sprig without installing another browser that I don't want to use. I made spade-serial
into a crate because I wanted to keep the logic separate so that people could apply it in multiple places, like maybe a GUI app.
The game uploaded in the video is this game. I did not create it.
GitHub Repository | spade-serial on crates.io | spade-upload on crates.iolibbluetooth_jni.so
(the bluetooth stack). Then, I used my smol brain to make a few changes to the source code (and by a few changes, i mean commented a few lines)... And, it worked!
Rant about Apple - Guess what- They hide their handshake packet from the PacketLogger app which allows me to view all the packets sent/received from my mac to any bluetooth device. Fortunately this was available online thanks to some other people who worked way before me. Apple even hid another packet necessary to activate Conversational Awareness and Adaptive Audio! Somehow, I got really, really, really lucky, and the packet just showed up in the PacketLogger app, shortly after which, it crashed. :confused-dino:
What works on the app –
• Accurate battery levels
• In-Ear detection – Music is automatically paused when they're taken out of ear! Plus, AirPods are removed as an available audio output device when none of the AirPods are in ear.
• Conversational Awareness – Lowers volume when you start speaking!
• Set Noise Control Mode – I can change the Noise Control Mode on my AirPods Pro 2!
• Renaming AirPods
• And a bunch of other settings extracted from the iOS/iPadOS settings page.
◦ Namely, Toggle Conversational Awareness, Toggle Loud Sound Reduction, Set Adaptive Audio Noise level, Toggle Automatic ear detection, Off listening Mode, Tone Volume, Noise Cancellation with Single AirPod, Toggle Volume Control by swiping.
• And, of course, a debug screen, which lists all packets received, and even allows you to send packets!
GitHub: github.com/kavishdevar/aln
upvote the issue on android issue tracker so that the bug gets fixed: issuetracker.google.com/issues/371713238 :>