Skip to content

Instantly share code, notes, and snippets.

View leon-anavi's full-sized avatar

Leon Anavi leon-anavi

View GitHub Profile
@leon-anavi
leon-anavi / Demo 1: Hello
Last active November 4, 2023 03:52
Arduino sketch for I2C mini OLED display
#include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
// For OLED display
#include <U8g2lib.h>
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
const int pinButton = 0;
/**********************************************************************
Demo example for Olimex board eduArdu
Tested with Arduino 1.8.8
Date: 2018/12/12
Description:
This demo is based on IRrecvDumpV2 sketch of the "IRremote" library.
On the terminal you can monitor the input data from IR transmitters.
You will see the infrared protocol and the code.
**********************************************************************/
@leon-anavi
leon-anavi / lircd.conf
Created September 3, 2018 06:37
lircd.conf
# Please take the time to finish this file as described in
# https://sourceforge.net/p/lirc-remotes/wiki/Checklist/
# and make it available to others by sending it to
# <[email protected]>
#
# This config file was automatically generated
# using lirc-0.9.4c(default) on Sat Sep 16 16:51:40 2017
# Command line used: -d /dev/lirc0 /home/pi/lircd.conf
# Kernel version (uname -r): 4.9.41-v7+
#
@leon-anavi
leon-anavi / weston
Created June 6, 2018 21:33
eel_5.0.2
root@raspberrypi3-64:~# systemctl status -l weston
● weston.service - Weston Wayland Compositor
Loaded: loaded (/lib/systemd/system/weston.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-06-06 15:16:00 UTC; 14min ago
Main PID: 434 (code=exited, status=1/FAILURE)
CPU: 42ms
Jun 06 15:16:00 raspberrypi3-64 systemd[1]: Started Weston Wayland Compositor.
Jun 06 15:16:00 raspberrypi3-64 systemd[1]: weston.service: Main process exited, code=exited, status=1/FAILURE
Jun 06 15:16:00 raspberrypi3-64 systemd[1]: weston.service: Unit entered failed state.
@leon-anavi
leon-anavi / Start MediaPlayer
Last active June 6, 2018 14:32
agl-demo-platform-raspberrypi3
[ 340.892035] vc4-drm soc:gpu: failed to allocate buffer with size 6430720
[ 340.899115] vc4-drm soc:gpu: failed to allocate buffer with size 6430720
[ 340.906024] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 340.913223] [drm] kernel: 8100kb BOs (1)
[ 340.919570] [drm] V3D: 198428kb BOs (192)
[ 340.926035] [drm] V3D shader: 260kb BOs (65)
[ 340.932464] [drm] dumb: 32kb BOs (2)
[ 340.938865] [drm] binner: 16384kb BOs (1)
[ 340.945161] [drm] RCL: 48kb BOs (6)
[ 340.951527] [drm] BCL: 8kb BOs (2)
@leon-anavi
leon-anavi / rpi-traffic-light
Created June 2, 2018 16:37
rpi-quick-demo-traffic-light
gpio readall
gpio mode 27 out
gpio mode 28 out
gpio mode 29 out
gpio write 27 1
gpio write 28 1
gpio write 29 1
@leon-anavi
leon-anavi / agl-image-minimal.log
Last active June 2, 2018 09:41
AGL for dra7xx-evm
WARNING: Host distribution "debian-9" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |##########################################| Time: 0:00:23
Parsing of 2487 .bb files complete (0 cached, 2487 parsed). 3295 targets, 515 skipped, 0 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_agl-distro '^/home2/leon/agl-test/meta-agl/meta-agl-distro/'
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.34.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "debian-9"
@leon-anavi
leon-anavi / gist:28cf78680bac8e4fdc22d2ae1411ff3c
Last active March 20, 2018 05:17
Yocto/OE U-Boot x86_64-linux-gnu-gcc
bitbake error while building Yocto/OE recipe u-boot 2017.09 for machine qemux86-64:
| unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
| error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Solution:
Add the following line to conf/local.conf:
HOSTTOOLS += "x86_64-linux-gnu-gcc"
leon@leon-desktop-G1:/media/storage/agl-rcar3/build$ bitbake agl-demo-platform-html5
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: /media/storage/agl-rcar3/meta-openembedded/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb: vsftpd: Changing groupname ftp's gid from (962) to (963), verify configuration files!
WARNING: /media/storage/agl-rcar3/meta-openembedded/meta-networking/recipes-daemons/proftpd/proftpd_1.3.5b.bb: proftpd: Changing groupname ftp's gid from (962) to (963), verify configuration files!
Parsing recipes: 100% |#######################################################################################| Time: 0:00:50
Parsing of 2219 .bb files complete (0 cached, 2219 parsed). 2942 targets, 367 skipped, 7 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_agl-distro '^/media/storage/agl-rcar3/meta-agl/meta-agl-distro/'
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'low-level-can-service' (but /media/storage/agl-rcar3/meta-agl-dem
10.107115] [<80618ed0>] (__schedule) from [<80619220>] (schedule+0x50/0xa8)
[ 10.114277] [<80619220>] (schedule) from [<80027e38>] (do_exit+0x740/0xac4)
[ 10.121352] [<80027e38>] (do_exit) from [<80014270>] (die+0x264/0x434)
[ 10.127987] [<80014270>] (die) from [<80021218>] (__do_kernel_fault.part.0+0x74/0x1f4)
[ 10.136034] [<80021218>] (__do_kernel_fault.part.0) from [<8061de70>] (do_page_fault+0x23c/0x3b8)
[ 10.145048] [<8061de70>] (do_page_fault) from [<8061e0a8>] (do_translation_fault+0xbc/0xc0)
[ 10.153533] [<8061e0a8>] (do_translation_fault) from [<80009208>] (do_DataAbort+0x4c/0xc8)
[ 10.161928] [<80009208>] (do_DataAbort) from [<8061d59c>] (__dabt_svc+0x3c/0x60)
[ 10.169431] Exception stack(0x95ae7c68 to 0x95ae7cb0)
[ 10.174558] 7c60: 9617e610 9617fc10 93c43400 93c43400 00000000 95059ac0