#!/usr/bin/env python
# This script generate a Python virtual environment project template compatible with vscode
# Author: Dame Diongue
# License: public domain
import os, sys, argparse, json, subprocess, shlex
from shutil import which
The current stable version of openFrameworks is 0.9.8 and it does not compile on some versions of Debian like Strech or Arch Linux (in my case). You are free to install the nightly version of openFrameworks but it could be that some addons is not compatible or does not work well.
If you have a compilation error like ^ Received error ^
it means that the version 1.6.0 of poco provided with openFrameworks is not compatible with the new version of openSSL (1.0).
To correct this problem you have to edit the poco.sh
file located in scripts/apothecary/formulas/poco/poco.sh
and replace the version number 1.6.0 with 1.7.7 in the following two lines and run install_dependencies.sh
Find the instruction in the link below https://www.raspberrypi.org/documentation/installation/installing-images/README.md
$ sudo apt-get -y install lxde-core lxterminal lxappearance xinit lightdm ntfs-3g python-pexpect vim figlet git-core firmware-ralink hostapd isc-dhcp-server lighttpd samba samba-common-bin php5-common php5-cgi php5 php5-mysql screen fbi ttf-mscorefonts-installer mediainfo gparted php5-cli iptables xtightvncviewer imagemagick dosfstools exfat-utils exfat-fuse hfsplus hfsprogs hfsutils xdotool expect expect-dev avahi-daemon libavahi-compat-libdnssd-dev feh libjpeg8 libjpeg8-dev libao-dev avahi-utils libavahi-compat-libdnssd-dev libva-dev youtube-dl python-smbus mpg321 mpg123 libreoffice-impress rc-gui python-pip iceweasel python-dev python-dbus xpdf x11-xserver-utils libncurses5-dev shellinabox tk okular usbmount libgstreamer0.10-0 libgstreamer0.10-dev gstreamer0.10-tools gstr
Installer le pulugin flash dans Ubuntu
$ sudo apt-get install adobe-flashplugin
Ouvrir le fichier /usr/share/mime/packages/freedesktop.org.xml
en mode root avec votre editeur de texte favori en tapant dans le terminal.
$ sudo gedit /usr/share/mime/packages/freedesktop.org.xml
Modifier la ligne suivante:
<mime-type type="application/vnd.adobe.flash.movie">
Remplacer s'il existe par:
const unsigned int leftLED = 3; // LED on left side | |
const unsigned int leftButton = 2; // Button on left side | |
const unsigned int rightLED = 10; // LED on right side | |
const unsigned int rightButton = 11; // Button on right side | |
int ledState = LOW; | |
int buttonState; | |
int previousState = HIGH; |
#page-2 p { | |
width: 320px; | |
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12); | |
border-radius: 2px; | |
box-sizing: border-box; | |
} | |
#page-2 div img { | |
width: 320px; | |
margin: 0; |
// Range tous les pins sur un tableau, la j'ai choisi au hasard | |
int numeroPins[] = {10, 13, 2, 12, 11}; | |
// Ici le nombre de lampe est 5 puisque le tableau contient 5 case | |
int nombreDeLampe = 5; | |
void setup() { | |
// Parcoure ton tableau pour setter le pin mode | |
for (int i = 0; i < nombreDeLampe; i++) | |
pinMode(numeroPins[i], OUTPUT); | |
// Joue le premier effet serpent une seul fois |