GPIO with raspi第一回(?)
ロードアベレージの高さに応じてLEDを点灯させる
- ロードアベレージが低い[0,2)→緑
- ちょっとしんどい[2,5)→黄
- しんどい[5,∞)→赤
#!/usr/bin/env python3 | |
"""nicovideo.py: parse json and show video info""" | |
__author__ = "Yuto Tokunaga" | |
import sys | |
import os | |
import glob | |
import json |
Driver Capability: | |
Driver: "uvcvideo" | |
Card: "UCAM-DLN130T series" | |
Bus: "usb-0000:00:14.0-2" | |
Capabilities: 84000001 |
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
public class Hello{ | |
public static void Main(){ | |
// Here your code ! | |
var t = new {a = 0f, b = 0f}; | |
Func<float, object> hoge = (float x) => new {a = x+1, b = x-1}; |