Install the default kernel:
sudo apt install linux-generic
- Find entrance from
/boot/grub/grub.cfg
- Get the $menuentry_id_option:
from enum import Enum | |
import time | |
TEMP_PATH = "/sys/devices/virtual/thermal/thermal_zone0/temp" | |
FAN_PATH = "/sys/class/thermal/cooling_device0/cur_state" | |
class FanSpeed(Enum): | |
OFF = 0 | |
LOW = 1 |
There is current no support for the NanoPi R2S in ArchLinuxArm, but it's possible to run it using the generic aarch64 installation.
dd
(sectors 32 to 32767) everything before the partition, except the partition table)./dev/mmcblk0p1
at offset of 32768 sectors (16384 KiB):Device Boot Start End Sectors Size Id Type
The CD that came with the device listed RTL8671B, but it's not on Realtek's website. Instead the manual points you to:
https://www.mytechkey.com/pages/driver
4.Bluetooth 5.0 Dongle
Driver Link:
https://www.dropbox.com/s/gwo9lz777i82f70/BT5.0%20Driver.zip?dl=0
import os | |
from PIL import Image | |
from PIL.ImageOps import grayscale | |
from watchdog.events import RegexMatchingEventHandler | |
class ImagesEventHandler(RegexMatchingEventHandler): | |
THUMBNAIL_SIZE = (128, 128) | |
IMAGES_REGEX = [r".*[^_thumbnail]\.jpg$"] | |
def __init__(self): |
# Scanner i2c en MicroPython | MicroPython i2c scanner | |
# Renvoi l'adresse en decimal et hexa de chaque device connecte sur le bus i2c | |
# Return decimal and hexa adress of each i2c device | |
# https://projetsdiy.fr - https://diyprojects.io (dec. 2017) | |
import machine | |
i2c = machine.I2C(scl=machine.Pin(5), sda=machine.Pin(4)) | |
print('Scan i2c bus...') | |
devices = i2c.scan() |
# Import requests (to download the page) | |
import requests | |
# Import BeautifulSoup (to parse what we download) | |
from bs4 import BeautifulSoup | |
# Import Time (to add a delay between the times the scape runs) | |
import time | |
# Import smtplib (to allow us to email) |
### microPython ESP8266 documentation from http://docs.micropython.org/en/latest/esp8266/esp8266/quickref.html#neopixel-driver | |
### | |
###from machine import Pin | |
###from neopixel import NeoPixel | |
### | |
###pin = Pin(0, Pin.OUT) # set GPIO0 to output to drive NeoPixels | |
###np = NeoPixel(pin, 8) # create NeoPixel driver on GPIO0 for 8 pixels | |
###np[0] = (255, 255, 255) # set the first pixel to white | |
###np.write() # write data to all pixels | |
###r, g, b = np[0] # get first pixel colour |
Hello, brethren :-)
As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".