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 System; | |
import System.IO; | |
import System.Media; | |
import Microsoft.JScript; | |
var args = Environment.GetCommandLineArgs(); | |
if (args.length < 2) { | |
Console.WriteLine("ファイル名は必須です"); | |
Environment.Exit(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
def main(): | |
pass | |
if __name__ == '__main__': | |
main() |
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
""" | |
MicroPython Aosong DHT12 I2C driver | |
""" | |
class DHTBaseI2C: | |
def __init__(self, i2c=None, addr=0x5c): | |
if i2c == None: | |
from machine import I2C | |
self.i2c = I2C(sda=21, scl=22) | |
else: |
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 dht12 | |
import utime | |
sensor = dht12.DHT12() | |
sensor.measure() | |
temperature = sensor.temperature() | |
humidity = sensor.humidity() |