This file contains 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
import wifiCfg, _thread, socket | |
wifiCfg.autoConnect() | |
class Broadcast: | |
""" | |
M5StickC PlusのMicroPython環境でブロードキャストの送信と受信を行うクラス | |
動作環境 | |
* M5StickC Plus 1.1 |
This file contains 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
from m5stack import lcd | |
import utime | |
import wifiCfg | |
import ntptime | |
''' | |
M5StickC Plusで画面のちらつき(フリッカー)を抑止する方法のサンプルコード | |
MicroPython版 | |
(Arduinoの場合はTFT_eSpriteを使うと良いらしい) |
This file contains 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
'use strict'; | |
const { unzip } = require('node:zlib'); | |
const { promisify } = require('node:util'); | |
const { SNS } = require('aws-sdk'); | |
exports.handler = async (event, context) => { | |
const unzipPromise = promisify(unzip); | |
const logData = event['awslogs']['data']; | |
const buffer = Buffer.from(logData, 'base64'); |
This file contains 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
$ cd fdkaac-0.6.0 | |
$ export LDFLAGS='-L/opt/local/lib' | |
$ export CPPFLAGS='-I/opt/local/include' | |
$ export LD_LIBRARY_PATH=/opt/local/lib | |
$ export LD_INCLUDE_PATH=/opt/local/include | |
$ autoreconf -i | |
configure.ac:12: installing './compile' | |
configure.ac:41: installing './config.guess' | |
configure.ac:41: installing './config.sub' | |
configure.ac:10: installing './install-sh' |
This file contains 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
$ cd fdkaac-0.6.0/ | |
$ autoreconf -i | |
configure.ac:49: warning: macro 'AM_ICONV' not found in library | |
configure.ac:49: error: possibly undefined macro: AM_ICONV | |
If this token and others are legitimate, please use m4_pattern_allow. | |
See the Autoconf documentation. | |
autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1 | |
$ autoreconf -i | |
configure.ac:49: warning: macro 'AM_ICONV' not found in library | |
configure.ac:12: installing './compile' |