I'm using the target arm-linux-musleabihf
for ARM v6 (Raspberry Zero is v6) with musl and hard float.
Following instructions from Rust (and C) Cross Compilation for the Raspberry Pi.
Create an output directory:
I'm using the target arm-linux-musleabihf
for ARM v6 (Raspberry Zero is v6) with musl and hard float.
Following instructions from Rust (and C) Cross Compilation for the Raspberry Pi.
Create an output directory:
use tokio::{runtime::Builder, sync::{mpsc}}; | |
use winit::{event::{Event, WindowEvent}, event_loop::{ControlFlow, EventLoop}, window::{Window, WindowBuilder}}; | |
pub struct Gpu { | |
pub surface: wgpu::Surface, | |
pub device: wgpu::Device, | |
pub queue: wgpu::Queue, | |
pub sc_desc: wgpu::SwapChainDescriptor, | |
pub swap_chain: wgpu::SwapChain, |
#!/usr/bin/env python | |
import pyaudio | |
from numpy import zeros,linspace,short,fromstring,hstack,transpose,log | |
from scipy import fft | |
from time import sleep | |
#Volume Sensitivity, 0.05: Extremely Sensitive, may give false alarms | |
# 0.1: Probably Ideal volume | |
# 1: Poorly sensitive, will only go off for relatively loud | |
SENSITIVITY= 1.0 |
import * as React from 'react'; | |
import { Component } from 'react'; | |
export default function HOCBaseRender<Props, State, ComponentState>( | |
Comp: new() => Component<Props & State, ComponentState>) { | |
return class HOCBase extends Component<Props, State> { | |
render() { | |
return <Comp {...this.props} {...this.state}/>; | |
} | |
} |
<!-- place this in an %angular paragraph --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.5/leaflet.css" /> | |
<div id="map" style="height: 800px; width: 100%"></div> | |
<script type="text/javascript"> | |
function initMap() { | |
var map = L.map('map').setView([30.00, -30.00], 3); | |
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { |