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
potter:/sdcard # aplay -v -v -v --dump-hw-params out.wav | |
Playing WAVE 'out.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo | |
HW Params of device "default": | |
-------------------- | |
ACCESS: MMAP_INTERLEAVED MMAP_NONINTERLEAVED MMAP_COMPLEX RW_INTERLEAVED RW_NONINTERLEAVED | |
FORMAT: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE FLOAT64_LE FLOAT64_BE MU_LAW A_LAW IMA_ADPCM S20_LE S20_BE U20_LE U20_BE S24_3LE S24_3BE U24_3LE U24_3BE S20_3LE S20_3BE U20_3LE U20_3BE S18_3LE S18_3BE U18_3LE U18_3BE | |
SUBFORMAT: STD | |
SAMPLE_BITS: [4 64] | |
FRAME_BITS: [4 640000] | |
CHANNELS: [1 10000] |
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
[ 0.112344,0] scm_call failed: func id 0x42000101, ret: -1, syscall returns: 0x0, 0x0, 0x0 | |
[ 0.116810,1] cpuidle: using governor ladder | |
[ 0.123472,2] cpuidle: using governor menu | |
[ 0.130108,2] cpuidle: using governor qcom | |
[ 0.131784,2] vdso: 2 pages (1 code @ ffffffc000e96000, 1 data @ ffffffc001444000) | |
[ 0.131821,2] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. | |
[ 0.132670,2] software IO TLB: mapped [mem 0xed400000-0xed800000] (4MB) | |
[ 0.133472,2] DMA: preallocated 256 KiB pool for atomic allocations | |
[ 0.138307,2] __of_mpm_init(): MPM driver mapping exists | |
[ 0.140063,2] platform soc:qcom,kgsl-hyp: assigned reserved memory node gpu_region@0 |
This file has been truncated, but you can view the full file.
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
/discover | |
Script started on 2021-05-25 19:22:12+01:00 [TERM="screen" TTY="/dev/pts/4" COLUMNS="143" LINES="34"] | |
[1;32m[]0;dan@loaclhost: ~/src/nixos-potter/mobile-nixosdan@loaclhost:~/src/nixos-potter/mobile-nixos]$[0m NIX_PATH="nixpkgs=../nixpkgs-for-mobile" nix-build examples/hello/ -A build.default --argstr de | |
evice motorola-potter --show-trace | |
trace: ************************************** | |
trace: * Evaluating device: motorola-potter * | |
trace: ************************************** | |
trace: Building with crossSystem?: aarch64-linux != x86_64-linux → we are. |
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
""" | |
My first application | |
""" | |
import toga | |
from toga.style import Pack | |
from toga.style.pack import COLUMN, ROW | |
from rubicon.java import JavaClass, JavaInterface | |
from rubicon.java.jni import java |
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
""" | |
My first application | |
""" | |
import toga | |
from toga.style import Pack | |
from toga.style.pack import COLUMN, ROW | |
from rubicon.java import JavaClass | |
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 <Adafruit_NeoPixel.h> | |
#include <math.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#include "wifi-config.h" |
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 <Adafruit_NeoPixel.h> | |
#include <math.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#define PIN 2 | |
#define STRIP_LENGTH 150 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(STRIP_LENGTH, PIN, NEO_GRB + NEO_KHZ800); |
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
{ pkgs }: | |
let env = builtins.getEnv "TELENT_NIXPKGS"; | |
telentNixpkgsSrc = | |
if env != "" | |
then | |
(builtins.trace "TELENT_NIXPKGS is set, build is impure" env) | |
else | |
fetchTarball { name = "telent-nixpkgs"; url="https://verisons.telent.net/private-git/telent-nixpkgs.git/snapshot/telent-nixpkgs-master.tar.gz"; }; | |
in { | |
isNormalUser = true; |
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
{ config, pkgs, ... }: | |
let projectroot = "/home/git/"; # where are the repos on the disk? | |
subdir = "private-git"; # url path prefix | |
staticFilesPath = "cgit-static"; # url path to cgit's static assets | |
# /home/git/published-by-cgit contains the list of projects | |
# that cgit will show | |
cgitrc = pkgs.writeText "cgitrc" | |
'' | |
# default paths to static assets | |
css=/${staticFilesPath}/cgit.css |