[toc]
I made the Google AIY voice kit without HAT. Thanks to great Hackaday article !
However some of the files are changed from 17/05/30. Some steps were changed from hackaday article and I changed the few things.
[indent=4] | |
uses | |
SDL | |
SDLGraphics | |
class SDLSample: Object | |
const SCREEN_WIDTH: int = 640 | |
const SCREEN_HEIGHT: int = 480 | |
const DELAY: int = 100 |
[indent=4] | |
uses | |
SDL | |
SDLGraphics | |
class SDLSample: Object | |
const SCREEN_WIDTH: int = 640 | |
const SCREEN_HEIGHT: int = 480 | |
const DELAY: int = 1 |
a |
[indent=4] | |
init | |
try | |
var fp = FileStream.open("sample.txt", "r") | |
line: string | |
while ((line = fp.read_line()) != null) | |
stdout.printf(line + "\n") | |
except | |
return |
" commit {{{1 | |
function! _vcs_commit(diff, logs) | |
let l:seq = [] | |
for item in systemlist("echo $_VCSTGT") | |
if item=~#"^/" | |
continue | |
endif | |
if item=~#"^-" | |
continue | |
endif |
[toc]
I made the Google AIY voice kit without HAT. Thanks to great Hackaday article !
However some of the files are changed from 17/05/30. Some steps were changed from hackaday article and I changed the few things.
live sample in bl.ocks.org
There are some tips in this sample.
# -*- coding: utf-8 -*- | |
import os | |
import FreeCAD | |
import Mesh | |
__objs__ = Gui.Selection.getSelection() | |
if len(__objs__) > 0: | |
fname = FreeCAD.ActiveDocument.FileName | |
dname = os.path.dirname(fname) | |
fname, fext = os.path.splitext(os.path.basename(fname)) |
if1=br0 | |
if2=wlan1 | |
net=192.168.2.0/24 | |
ip=192.168.2.2 | |
iptables -I FORWARD -i $if1 -o $if2 -s $net -d $ip -p udp -m multiport \ | |
--dports 80,137,138,161,427,443,5222,5223,5297,5298,5353 \ | |
-m state --state NEW -j ACCEPT | |
iptables -I FORWARD -i $if1 -o $if2 -s $net -d $ip -p tcp -m multiport \ | |
--dports 80,137,139,427,443,5222,5223,5297,5298,5353,9100,9220,9500 \ | |
-m state --state NEW -j ACCEPT |
The box is Z69 Max
vendor: KimTin? LZHOKK?
RAM 3G, Ether 1000M