Go to advanced search

by EL3PHANTEN
Sat Jan 10, 2015 4:00 pm
Forum: HATs and other add-ons
Topic: Eleduino 3.2 Inch TFT LCD for Raspberry
Replies: 17
Views: 30970

Re: Eleduino 3.2 Inch TFT LCD for Raspberry

Hi I made this work yesterday. On this post: http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=89127&p=659490&hilit=troubles+with+tft+3.2#p659490 by Igor Soudakevitch » Thu Nov 06, 2014 8:28 pm -> DVD_DVK512_CN_EN ( https://yadi.sk/d/YfnDLbaXcYGzH, ~1GB ) is the official image file from Wavesha...
by EL3PHANTEN
Sat Dec 20, 2014 7:20 pm
Forum: Compute Module
Topic: USB Boot
Replies: 29
Views: 21860

Re: USB Boot

Can I have a raspberry pi B to act as a USB flash drive on one of the USB ports, by shorting those r36 and r37 like mentioned above, and remove the ethernet connection. And have a usb wifi conection in the other usb port? No, this won't work. The SoC has one USB controller, which can be in either H...
by EL3PHANTEN
Sat Dec 20, 2014 5:21 pm
Forum: Compute Module
Topic: USB Boot
Replies: 29
Views: 21860

Re: USB Boot

Can I have a raspberry pi B to act as a USB flash drive on one of the USB ports, by shorting those r36 and r37 like mentioned above, and remove the ethernet connection. And have a usb wifi conection in the other usb port? I need this in a project where I need to send a log from a machine through wif...
by EL3PHANTEN
Sun Feb 23, 2014 3:48 pm
Forum: Python
Topic: Launching a script/application on boot?
Replies: 4
Views: 855

Re: Launching a script/application on boot?

make your script executable

$ nano /storage/.config/autostart.sh

add this
#!/bin/sh
python /yourDirectory/yourscript.py
by EL3PHANTEN
Sun Feb 23, 2014 3:42 pm
Forum: Python
Topic: 2D Arrays
Replies: 2
Views: 603

Re: 2D Arrays

List2d = [[1,2,3],[4,5,6],[7,8,9]]

print List2d[1][1] #output 5

print List2d[0][0] #output 1
by EL3PHANTEN
Sun Feb 23, 2014 3:33 pm
Forum: Python
Topic: Declaring global variables
Replies: 8
Views: 2334

Re: Declaring global variables

#you can use dictionary.

variables = {'x': value, 'y': anotherValue} #now you can access the by typing variables{'x'}.

#you can also add to them variables['z'] = thirdValue
by EL3PHANTEN
Sun Feb 23, 2014 3:29 pm
Forum: Python
Topic: Declaring global variables
Replies: 8
Views: 2334

Re: Declaring global variables

You can use a list or dictionary.

#a list
variables = ['x','y'] #now you can access it by variables[0] and variables[1]

#or dictionary
variables = {'x': value, 'y': somevalue} #variables['x'] and variables['y']

#does that solve your problem

Go to advanced search