Skip to content

Add old TS files #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added CAB-14720 + WRL-14498/RockBlock Cable.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DEV-12651/Sandbox Stuff.zip
Binary file not shown.
Binary file added DEV-12923/Time Library for Microview.zip
Binary file not shown.
Binary file added DEV-13116/Spectrum Shield LED working.zip
Binary file not shown.
19 changes: 19 additions & 0 deletions DEV-16653/ili-init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

echo -en " Inserting fbtft_device kernel module with custom init & GPIO config... "

sudo modprobe fbtft_device name=fb_ili9341 gpios=reset:23,dc:24 speed=16000000 bgr=1 rotate=180 custom=1 init=\
-1,0x28,-2,20,-1,0xCF,0x00,0x83,0x30,-1,0xED,0x64,0x03,0x12,0x81,-1,0xE8,0x85,0x01,0x79,\
-1,0xCB,0x39,0x2c,0x00,0x34,0x02,-1,0xF7,0x20,-1,0xEA,0x00,0x00,-1,0xC0,0x26,-1,0xC1,0x11,\
-1,0xC5,0x35,0x3E,-1,0xC7,0xBE,-1,0xB1,0x00,0x1B,-1,0xB6,0x0a,0x82,0x27,0x00,-1,0xB7,0x07,\
-1,0x3A,0x55,-1,0x36,0x38,-1,0x11,-2,120,-1,0x29,-2,20,-3


if [ $? -ne 0 ]; then
echo -e "\033[31mINIT FAILED.\033[0m"
exit 1
fi

echo -e "\033[32mINIT OK.\033[0m"

con2fbmap 1 1
19 changes: 19 additions & 0 deletions DEV-16653/ili-init_touch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

echo -en " Inserting fbtft_device kernel module with custom init & GPIO config... "

sudo modprobe fbtft_device name=fb_ili9341 gpios=reset:23,dc:24 speed=16000000 bgr=1 rotate=180 custom=1 init=\
-1,0x28,-2,20,-1,0x21,-1,0xCF,0x00,0x83,0x30,-1,0xED,0x64,0x03,0x12,0x81,-1,0xE8,0x85,0x01,0x79,\
-1,0xCB,0x39,0x2c,0x00,0x34,0x02,-1,0xF7,0x20,-1,0xEA,0x00,0x00,-1,0xC0,0x26,-1,0xC1,0x11,\
-1,0xC5,0x35,0x3E,-1,0xC7,0xBE,-1,0xB1,0x00,0x1B,-1,0xB6,0x0a,0x82,0x27,0x00,-1,0xB7,0x07,\
-1,0x3A,0x55,-1,0x36,0x38,-1,0x11,-2,120,-1,0x29,-2,20,-3


if [ $? -ne 0 ]; then
echo -e "\033[31mINIT FAILED.\033[0m"
exit 1
fi

echo -e "\033[32mINIT OK.\033[0m"

con2fbmap 1 1
28 changes: 28 additions & 0 deletions DEV-16653/unili.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

error_str=""

echo -en " Restoring tty1 mapping to fb0... "
con2fbmap 1 0 1>error_str 2>>error_str

if [ $? -ne 0 ]; then
echo -e "\033[31mFAILED\033[1;31m:"
echo $err_str
echo -e "\033[0m"
exit 1
fi

echo -e "\033[32mOK\033[0m"

echo -en " Removing fbtft_device module from kernel... "

rmmod -f fbtft_device

if [ $? -ne 0 ]; then
echo -e "\n\033[31mRMMOD FAILED\033[0m"
exit 2
fi

echo -e "\033[32mOK\033[0m"


66 changes: 66 additions & 0 deletions DEV-16653/wm8960.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[ 5.674789] systemd[1]: Configuration file /lib/systemd/system/wm8960-soundcard.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[ 7.114079] snd_soc_wm8960: loading out-of-tree module taints kernel.
[ 9.210530] asoc-simple-card soc:sound: wm8960-hifi <-> 3f203000.i2s mapping ok
[ 9.240144] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.308419] Error: Driver 'asoc-simple-card' is already registered, aborting...


from __future__ import print_function

import sys
import wave
import getopt
import alsaaudio

def play(device, f):

print('%d channels, %d sampling rate\n' % (f.getnchannels(),
f.getframerate()))
# Set attributes
device.setchannels(f.getnchannels())
device.setrate(f.getframerate())

# 8bit is unsigned in wav files
if f.getsampwidth() == 1:
device.setformat(alsaaudio.PCM_FORMAT_U8)
# Otherwise we assume signed data, little endian
elif f.getsampwidth() == 2:
device.setformat(alsaaudio.PCM_FORMAT_S16_LE)
elif f.getsampwidth() == 3:
device.setformat(alsaaudio.PCM_FORMAT_S24_LE)
elif f.getsampwidth() == 4:
device.setformat(alsaaudio.PCM_FORMAT_S32_LE)
else:
raise ValueError('Unsupported format')

periodsize = int(f.getframerate() / 8)

device.setperiodsize(periodsize)

data = f.readframes(periodsize)
while data:
# Read data from stdin
device.write(data)
data = f.readframes(periodsize)


def usage():
print('usage: playwav.py [-d <device>] <file>', file=sys.stderr)
sys.exit(2)

if __name__ == '__main__':

opts, args = getopt.getopt(sys.argv[1:], 'd:')
for o, a in opts:
if o == '-d':
device = a

if not args:
usage()

f = wave.open(args[0], 'rb')
device = alsaaudio.PCM(device="default")

play(device, f)

f.close()
Binary file not shown.
Binary file added Drivers/FTDI - Instructions/FTDI VCP Drivers.zip
Binary file not shown.
Binary file not shown.
Binary file added Drivers/Windows-CH340-Driver.zip
Binary file not shown.
Binary file added KIT-11576/SIK v3 Experiment 14.zip
Binary file not shown.
Binary file added PGM-11801/usbtinyisp_libusb_1.2.6.0.zip
Binary file not shown.
Binary file added ROB-14342/uArm Reconfiguration.zip
Binary file not shown.
Binary file added SEN-14001/RazorBluetooth.zip
Binary file not shown.
Binary file added SEN-14001/RazorMouse.zip
Binary file not shown.
Binary file added SEN-14066/URAx64_v3.4.zip
Binary file not shown.
Binary file added SEN-14518+14585/Fingerprint Scanner GT-521FX2.zip
Binary file not shown.
Binary file added TOL-18627/USB Logic Analyzer.zip
Binary file not shown.
Binary file added WRL-13711/ESP8266 AP Example- Pulse Motor.zip
Binary file not shown.