Test coloration syntaxique
Test basé sur le plugin SyntaxHighlighter Evolved
Test en C :
for (i=0; i<=10;i++) {
}
Test avec Arduino (basé sur le plugin SyntaxHighlighter Evolved avec Arduino-Brush (http://elabz.com/arduino-syntaxhighlighter/)
Avec les numéros de ligne :
int digit_common_pins[]={8,9,10}; // This is my code, non-working sample
int ledForwardState = LOW;
PORTD = digits[digits_array[z]];
digitalWrite(digit_common_pins[z], HIGH);
Sans les numéros de ligne :
int digit_common_pins[]={8,9,10}; // This is my code, non-working sample
int ledForwardState = LOW;
PORTD = digits[digits_array[z]];
digitalWrite(digit_common_pins[z], HIGH);
Essai du programme blink (sans les numéros de lignes)
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
}
Essai avec un programme Processing
/**
* Create Image.
*
* The createImage() function provides a fresh buffer of pixels to play with.
* This example creates an image gradient.
*/
PImage img;
void setup()
{
size(200, 200);
img = createImage(120, 120, ARGB);
for(int i=0; i < img.pixels.length; i++) {
img.pixels[i] = color(0, 90, 102, i%img.width * 2);
}
}
void draw()
{
background(204);
image(img, 33, 33);
image(img, mouseX-60, mouseY-60);
}
Laisser un commentaire
Vous devez vous connecter pour publier un commentaire.