Go to advanced search

by 355/113
Thu May 01, 2014 7:41 pm
Forum: General discussion
Topic: Forum login
Replies: 23
Views: 2513

Forum login

I just logged in for the first time today. I was greeted with a message that because of the fact I had tried to log in an excessive amount of times, I needed to answer a capcha which I did and here I am. Assumption is someone tried to hack my account, presumably unsuccessfully. Does this happen often?
by 355/113
Tue Mar 25, 2014 12:50 am
Forum: Python
Topic: Quick time.sleep(????) question.
Replies: 6
Views: 1721

Re: Quick time.sleep(????) question.

In case other people are as confused as I was at first on this issue, the answer to the op question " Can you have a variable in the time.sleep() method? i.e Blah = 8 time.sleep(Blah) is *yes*, you can use float variables in time.sleep() I am using one to drive a servo with RPIO pwm function and my ...
by 355/113
Thu Mar 20, 2014 5:07 pm
Forum: Camera board
Topic: Is new pi-cam compatible with PiTFT?
Replies: 1
Views: 918

Is new pi-cam compatible with PiTFT?

I tried "sudo rpi-update" and after it ran, my system was left in a broken state of mind. I have the Adafruit PiTFT 320x240 LCD with touch screen installed and it no longer functioned. After I re-ran the PiTFT install tutorial, everything ran again but the PiCam is still the 'old' PiCam - no new fan...
by 355/113
Tue Mar 18, 2014 1:28 am
Forum: General discussion
Topic: Things I've Learned
Replies: 31
Views: 4125

Re: Things I've Learned

18. I no longer search the forum before I post. "Information: The following words in your search query were ignored because they are too common words: xxx." Instead, I search on https://duckduckgo.com/ like this: example: "gpio with python site: http://www.raspberrypi.org/phpBB3/ " and many relevant...
by 355/113
Fri Mar 14, 2014 11:31 pm
Forum: Advanced users
Topic: SD cloner script runs on the RPi
Replies: 0
Views: 8006

SD cloner script runs on the RPi

I wanted to clone an SD card so all the various settings and changes I have made would all be duplicated without me having to set them. And I wanted to be able to run on any size card. I found this gem on the forum here: http://www.raspberrypi.org/forum/viewtopic.php?f=91&t=5947&start=25 where in us...
by 355/113
Mon Mar 10, 2014 3:15 am
Forum: Raspbian
Topic: How to hide/remove Menu Bar and Undecorate on Startup
Replies: 6
Views: 15685

Re: How to hide/remove Menu Bar and Undecorate on Startup

@mazternhell: try this: The following option instructs the window manager not to decorate the window (i.e no title bar and window buttons, plus no borders) root.overrideredirect(1) # or True A false argument restores the decorations. I got lucky searching for the same topic; found it here: https://s...
by 355/113
Thu Mar 06, 2014 3:45 pm
Forum: Python
Topic: #!/usr/bin/python2 why?
Replies: 4
Views: 1092

Re: #!/usr/bin/python2 why?

Thanks for the explanation! It was worth getting out of bed this morning - I have learned something already. Now my question is what is the purpose when using it in a python program? So far, most of the tutorial example snippets I have seen don't include it. When does a programmer include it and whe...
by 355/113
Wed Mar 05, 2014 11:38 pm
Forum: Python
Topic: #!/usr/bin/python2 why?
Replies: 4
Views: 1092

#!/usr/bin/python2 why?

I am just learning python and have noticed that the first line in many examples looks something like this:

Code: Select all

#!/usr/bin/python2
I thought the # sign meant the entire line was a comment; now I'm seeing that maybe this is a 'symlink?' telling the compiler where stuff is? No?

What's it all about?
by 355/113
Sat Mar 01, 2014 9:29 pm
Forum: Python
Topic: How to issue commands from program that require root
Replies: 11
Views: 1865

Re: How to issue commands from program that require root

BTW - @elparaguayo - I have been following your posts on "PyGame Framebuffer UI for small touchscreen" and plan to try some of it out.
Thanks!
by 355/113
Sat Mar 01, 2014 9:07 pm
Forum: Python
Topic: How to issue commands from program that require root
Replies: 11
Views: 1865

@elParaguayo - thank you, that is the kind of information I was searching for. But there is one further problem: at present, I must: a) power up b) log in and supply a password - with a keyboard c) preface commands with sudo (or log in as root, again, using a keyboard) I just spent a lot of time sea...
by 355/113
Sat Mar 01, 2014 3:40 pm
Forum: Python
Topic: How to issue commands from program that require root
Replies: 11
Views: 1865

Re: How to issue commands from program that require root

Running as root looks like what I probably want. I'm building a stand-alone portable system. At present, I'm connecting to a GPS receiver and displaying gps data. I've found that the socket connection sometimes gets bent and must be restarted with these commands: sudo killall gpsd sudo gpsd /dev/tty...
by 355/113
Sat Mar 01, 2014 1:36 am
Forum: Python
Topic: How to issue commands from program that require root
Replies: 11
Views: 1865

How to issue commands from program that require root

How to programmatically issue commands that require root? I searched for answers to this but probably am too inexperienced to understand what to do. One thing I don't want to do is change libraries/language/etc as suggested in some topics.

Is it really not possible to do this simply?
by 355/113
Thu Feb 20, 2014 1:58 am
Forum: Bare metal, Assembly language
Topic: dexbasic questions
Replies: 18
Views: 4083

Re: dexbasic questions

Now operation is: High = 80ns Low = 33ns Period = 113ns Freq = about 8.9MHz So that's quite an improvement. Knowing nothing about bare-metal mode on the Pi, I'm learning a lot. I just found the "Baking Pi" tutorial at: http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/ and will try out some ...
by 355/113
Wed Feb 19, 2014 3:51 pm
Forum: Bare metal, Assembly language
Topic: dexbasic questions
Replies: 18
Views: 4083

Re: dexbasic questions

Now it compiles - thank you! I'll run it this evening.
by 355/113
Wed Feb 19, 2014 2:53 am
Forum: Bare metal, Assembly language
Topic: dexbasic questions
Replies: 18
Views: 4083

Re: dexbasic questions

This line:

Code: Select all

gpioAddress 16                                     ;
caused the fasmwarm program to declare "Error: illegal instruction"
by 355/113
Tue Feb 18, 2014 7:00 pm
Forum: Bare metal, Assembly language
Topic: dexbasic questions
Replies: 18
Views: 4083

Re: dexbasic questions

Very interesting! I'll look into that when I get home this evening.
Thanks!
by 355/113
Tue Feb 18, 2014 4:36 am
Forum: Bare metal, Assembly language
Topic: dexbasic questions
Replies: 18
Views: 4083

Re: dexbasic questions

That runs a bit faster - it was around 500kHz, now it looks like this:
Pin high time = 790ns
Pin low time = 805ns
Approx freq = 629kHz

Again, thank you for helping me.
by 355/113
Tue Feb 18, 2014 1:27 am
Forum: Bare metal, Assembly language
Topic: dexbasic questions
Replies: 18
Views: 4083

Re: dexbasic questions

Now I have the bitbang tutorial code running and out of curiosity, I removed the delays between the bit set and the bit clear commands to see how fast it could toggle a pin as well as how long the goto would take. I'm seeing about 900ns for the bit set period and around 1.1us for the combination of ...
by 355/113
Sun Feb 16, 2014 4:32 pm
Forum: Bare metal, Assembly language
Topic: dexbasic questions
Replies: 18
Views: 4083

Re: dexbasic questions

Success! First, I must apologize for the wild goose chase - this morning I deleted all the files and started over with the tutorial. I noticed that the 'OK' led in fact did flash and the monitor was getting video. Bad video but it was present. The screen was mostly black with 10 or 15 lines of flash...
by 355/113
Sun Feb 16, 2014 4:22 am
Forum: Bare metal, Assembly language
Topic: dexbasic questions
Replies: 18
Views: 4083

Re: dexbasic questions

Thanks!!

I'll try that and report back how it worked. I'm excited to get this going if I can - just read the earlier posts about fast bit toggles and would like to do some of that with dexbasic if possible.

Thanks again!
by 355/113
Sat Feb 15, 2014 9:13 pm
Forum: Bare metal, Assembly language
Topic: dexbasic questions
Replies: 18
Views: 4083

dexbasic questions

I just saw some postings on the forum about dexos and dexbasic and am very interested in trying this out. At this site: http://www.dex-os.com/DexBasic/DexBasic.htm I found instructions and followed them but my R-Pi lays there and just smirks at me. One difference I noted is that the Intro tutorial s...
by 355/113
Wed Feb 12, 2014 7:26 pm
Forum: Beginners
Topic: What OS version in in my Pi?
Replies: 8
Views: 2408

Re: What OS version in in my Pi?

Thanks to everyone for replies! I'm a total nooby at this so will try to include all relevant information on future postings.
by 355/113
Wed Feb 12, 2014 5:50 pm
Forum: Beginners
Topic: What OS version in in my Pi?
Replies: 8
Views: 2408

Re: What OS version in in my Pi?

@joan and @redhawk: thank you! Trying both of those commands produces this output: [email protected] ~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)" NAME="Raspbian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)" ID=raspbian ID_LIKE=debian ANSI_COLOR="1;31" HOME_URL="http://www.raspbian.org...
by 355/113
Wed Feb 12, 2014 5:21 pm
Forum: Beginners
Topic: What OS version in in my Pi?
Replies: 8
Views: 2408

What OS version in in my Pi?

How can I find out what OS version is currently running in my Pi?

Go to advanced search