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
#!/bin/sh | |
# Original source in https://forums.pimoroni.com/t/hyperpixel-selective-output-eg-on-boot/5193/15 | |
# | |
# Reboots the RPi enabling/disabling HDMI/Hyperpixel depending if HDMI is used or not | |
# If the machine starts to reboot on a loop, mount /boot on a different machine, and | |
# create a file in /boot/no-display-reboot | |
_HDMI_DEVICE=$(tvservice -l | perl -n -e '/Display Number (\d+), type HDMI 0$/ && print $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
#![allow(dead_code)] | |
#![allow(non_upper_case_globals)] | |
extern crate egl; | |
extern crate libc; | |
use egl::{EGLConfig, EGLDisplay, EGLNativeWindowType, EGLSurface, EGLint}; | |
use gr_context::Context; | |
use opengles::glesv2 as gl; | |
use std::ffi::CString; |
OlderNewer