A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

arduino test - Stikked
From somebody, 10 Years ago, written in C++.
Embed
  1. //sudo gpasswd --add kiang dialout
  2.  
  3. int incomingByte = 0;   // for incoming serial data
  4. int sw = 0;
  5.  
  6. void setup() {
  7.   pinMode(2, OUTPUT);
  8.   pinMode(3, OUTPUT);
  9.   pinMode(4, OUTPUT);
  10.         Serial.begin(9600);     // opens serial port, sets data rate to 9600 bps
  11. }
  12.  
  13. void loop() {
  14.  
  15.         // send data only when you receive data:
  16.         if (Serial.available() > 0) {
  17.                 // read the incoming byte:
  18.                 incomingByte = Serial.read();
  19.  
  20.                 if(incomingByte == 65) {
  21.                   if(sw == 0) {
  22.                     sw = 1;
  23.                     digitalWrite(2, HIGH);
  24.   digitalWrite(3, HIGH);
  25.   digitalWrite(4, LOW);
  26.   delay(500);
  27.   digitalWrite(2, LOW);
  28.                   } else {
  29.                     sw = 0;
  30.                     digitalWrite(2, HIGH);
  31.   digitalWrite(4, HIGH);
  32.   digitalWrite(3, LOW);
  33.   delay(500);
  34.   digitalWrite(2, LOW);
  35.                   }
  36.                 }
  37.         }
  38. }