If you encounter error "ModuleNotFoundError: No module named 'serial'" on your macOS when using Arduino,
it's perhaps Arduino is using Python 2 and not Python 3.
This Gist will allow you to install the pyserial module on Python 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * ATOM LiteをBLEキーボードにする。 | |
| * | |
| * 送信するキーを変更するにはSEND_KEYの値を変更する。 | |
| */ | |
| #include <BleKeyboard.h> // https://github.com/T-vK/ESP32-BLE-Keyboard | |
| #include <M5Atom.h> | |
| const uint8_t SEND_KEY = 0x20; // 0x20: スペース |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| print "What is the URL of your Apple Downloads resource?\nURL:" | |
| url = gets.strip | |
| print "What is the ADCDownloadAuth cookie token:\nADCDownloadAuth: " | |
| token = gets.strip | |
| command = "aria2c --header \"Host: adcdownload.apple.com\" --header \"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\" --header \"Upgrade-Insecure-Requests: 1\" --header \"Cookie: ADCDownloadAuth=#{token}\" --header \"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1\" --header \"Accept-Language: en-us\" -x 16 -s 16 #{url} -d ~/Downloads" |