first commit

This commit is contained in:
pandacraft 2025-03-21 16:04:17 +01:00
commit a5a0434432
1126 changed files with 439481 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#! /bin/bash
id=$(ps aux | grep "python GrovePiScratch.py" | grep -v grep | awk '{print $2}')
kill -15 $id 2> /dev/null
python /home/pi/Desktop/GrovePi/Software/Scratch/GrovePiScratch.py

View file

@ -0,0 +1,11 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/home/pi/Desktop/GrovePi/Software/Scratch/GrovePi_Scratch_Scripts/GrovePi_Scratch_Start.sh
Icon=/usr/share/scratch/Media/Costumes/Animals/cat1-b.gif
Terminal=false
Name=GrovePi_Scratch_Start
Comment= Programming system and content development tool
Categories=Application;Education;Development;
MimeType=application/x-scratch-project

View file

@ -0,0 +1,2 @@
#! /bin/bash
lxterminal --command "sudo /home/pi/Desktop/GrovePi/Software/Scratch/GrovePi_Scratch_Scripts/GrovePiScratch_debug.sh"

View file

@ -0,0 +1,38 @@
NOTE: THIS IS FOR DEVELOPERS ONLY. Normal user need not do this.
See more at http://www.dexterindustries.com/grovepi/
1. Make both **GrovePiScratch_debug.sh** and **GrovePi_Scratch_Start.sh** executable:
> sudo chmod +x GrovePiScratch_debug.sh
> sudo chmod +x GrovePi_Scratch_Start.sh
2. Copy **GrovePi_Scratch_Start.desktop** to **/usr/share/applications/**
3. Make a desktop Shortcut from **Desktop->Education->GrovePi_Scratch_Start**
3. Double click on **GrovePi_Scratch_Start** to start running the script
## License
The MIT License (MIT)
GrovePi for the Raspberry Pi: an open source platform for connecting Grove Sensors to the Raspberry Pi.
Copyright (C) 2016 Dexter Industries
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View file

@ -0,0 +1,28 @@
These are instructions for installing GrovePi Scratch on any Raspberry Pi image not from Dexter Industries.
To skip this step, use the Dexter Industries Raspberry Pi image, found here: http://www.dexterindustries.com/BrickPi/getting-started/pi-prep/
The following is a short list of changes needed to setup GrovePi for Scratch.
You need the ScratchPy library to be installed. Install it by the following procedure.
Run the command:
sudo wget https://bitbucket.org/pypa/setuptools/raw/0.7.4/ez_setup.py -O - | sudo python
Clone scratchpy:
cd Desktop/GrovePi/Software/Scratch
git clone https://github.com/pilliq/scratchpy.git
Navigate to extracted directory and run:
sudo make install
Start Scratch
Select "Sensing"
Right Click Enable Remote sensor connections
You will see "Remote Sensor Connections Enabled"
back to terminal
cd Desktop/GrovePi/Software/Scratch
sudo python GrovePiScratch.py
Now open up an example:
Might see "Remote sensor connections enabled" again. That's fine, hit ok.
And now go!