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
#include <zephyr/shell/shell_uart.h> | |
static unsigned char shell_stdin_hook(void) | |
{ | |
const struct shell * sh = shell_backend_uart_get_ptr(); | |
char ch; | |
size_t count = 0; | |
while (count == 0) { |
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
/* Simple SQRT calculation | |
* NOTE: result fits within uint16_t (of course) | |
*/ | |
uint32_t sqrt_int32(uint32_t x) | |
{ | |
uint32_t res = 0; | |
uint32_t add = 0x8000; | |
uint32_t temp; | |
uint8_t i; |
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
#!/usr/bin/env python | |
# | |
# place command below in /storage/.config/autostart.sh | |
# nohup /storage/fanshim.py & | |
# | |
# By Maxime Vincent (maxime [dot] vince [at] gmail [dot] com) | |
# | |
# Based on: | |
# http://www.philrandal.co.uk/blog/archives/2019/07/entry_214.html | |
# https://forum-raspberrypi.de/forum/thread/43568-fan-shim-steuern/ |