Posts

C Programmierhilfe bei string einlesen als Pointervariable

hallo, ich bräuchte mal bitte eine c programmierhilfe beim string einlesen als pointervariable. vorrauschicken muss ich: mein pointer-c ist recht wackelig... hier ist der code, der funktioniert (ohne pointer): code: [select] // arduino rechner #define inlength 20 #define cr       13 void setup() {   serial.begin(9600);   serial.println("mathe rechner");   serial.println();   serial.print("geben sie eine zahl ein: "); } long fakultaet(int x) {    if(x > 1) { return x * fakultaet(x-1);}    else {return x;} } void serial_io() {  long value, result;  char instring[inlength+2];    while(1) {        //---------------------------------------    int incount = 0;        do    {      while (serial.available()==0);            instring[incount] = serial.read();   ...

Switch statt multiple loops?

Image
hallo, ich schreibe grad einer steuerung für mein zimmer mit relaisschaltungen, sensoren, usw. das problem ist, wie kann ich quasi gleichzeitig die gui und den rest ausführen? erstmal gegooglet und auf diese seite gestoßen(http://arduino.cc/en/tutorial/multipleblinks). soweit ich das verstanden habe, muss man delays einbauen, damit auch sichergestellt wird, dass alle schleifen auch wirklich laufen. dann ein paar stunden später beim müsli machen komme ich auf die idee stattdessen switch-befehle zu verwenden, wie in dem beispiel unten. meine frage nun, haltet ihr davon? gibt es irgendwelche no-goes, die ich begangen habe? ich bin leider nicht der c-profi. mit multiple loops(scheduler.h) code: [select] #include utouch #include scheduler int x, y; utouch touch(6,5,4,3,2); void setup(){} void loop(){       senddata();     while(!serial.available()){       delay(10);     }     char c = serial.getdata(); } void loop2(){...

Camera & motion working improperly - Raspberry Pi Forums

Image
hi have raspberry pi b+ raspbian installed it. have noir camera module. installed rpi web cam interface according tutorial , in theory works properly. there 2 issues have: 1. motion crashes after while. log: http://pastebin.com/pnin6umg 2. can't use camera, have issue since today. installed stuff emailing working (postfix , sendemail) dependencies, didn't work, removed packages , tried rid of dependencies "apt-get autoremove". not sure if removed necessary camera work?? --> video0 isn't in /dev/ --> enabling camera in raspi-config , rebooting doesn't help --> can't load module modprobe bcm2835_v4l2, mabye reason herefore it's loaded @ boot. error when trying load manually: error: not insert 'bcm2835_v4l2': operation not permitted --> i'm using sudo theory since temperatures have been high in central europe case might warm , camera module doesn't work? have this case, has "slot" camera. camera in case. r...

Flash Export not there

i set new intel mac pro, installed final cut pro , flash professional 8, flash export isn't showing quicktime export options. i'm using quicktime version 7.1.3 is there update flash or need? very similar issue here. export flash video missing quicktime pro. it's missing mpeg streamclip. flash media encoder corrupting files. i'm going try reinstall.   i'm on cs4   - eric More discussions in Adobe Animate CC - General adobe

Did I fry my WS2801 strip? (LEDs are all white/off-white) [Updated]

i've been using 50 led ws2801 strip week, trying make decorative light-up branch ones sell around christmas time. going great, they've started behave strangely. i in middle of programming new section of visualizer when happened. had programmed turn on 1 segment of 12 leds, next segment, , on (so map led indexes on branch). when wrote next part of program, changed switch statement variables move new function, after flashing arduino uno, strip frozen in middle of previous visualization. tried reset button; nothing. unplugged usb , plugged in. caused leds reset, new section of program turning on first led. switched library's example code (which has worked in past strip , arduino), suspecting program @ fault. result of leds turn on full white or off-white, can still see trying example visualizations. example, in "color chase" visualization, can see running through leds, it's white. it's if adding 250 each color value between arduino , strip. to ...

waveshare 4" how to install. - Raspberry Pi Forums

so have raspberry pi 2 waveshare sportpear 4" fbftf screen. far have touch input on touch screen , thats it. know how video on touch screen. got running did. code: select all sudo rpi-update sudo reboot sudo repo_uri=https://github.com/notro/rpi-firmware rpi-update sudo reboot sudo git clone https://github.com/swkim01/waveshare-dtoverlays.git sudo cp waveshare-dtoverlays/waveshare35a-overlay.dtb /boot/overlays/ sudo nano /boot/config.txt *find* #uncomment this enable lirc-rpi module , add* dtparam=spi=on dtoverlay=waveshare35a sudo reboot sudo wget -c https://raw.githubusercontent.com/robertcnelson/tools/master/pkgs/dtc.sh sudo chmod +x dtc.sh sudo ./dtc.sh sudo reboot sudo nano /usr/share/x11/xorg.conf.d/99-fbturbo.conf in file, find line says: option “fbdev” “/dev/fb0″ , change fb0 fb1 ctrl+x y enter sudo reboot go raspberrypi

Thread: Where does Xorg save it's resolution settings now?

where resolution settings stored now??? it's not in xorg.conf anymore! changed resolution can't see gnome when loads. can ssh in , make changes though. tried setting monitors section in xorg.conf, no effect. don't tell me to: use xrandr, doesn't work non gnome-terminal. rm ~/.config/monitors.xml, ubuntu 8.04 doesn't have config file remove. monitor, i've tried 5 different ones neighbors , friends. no didn't setup remote desktop no not reinstall just reset x: code: sudo dpkg-reconfigure -phigh xserver-xorg Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Hardware [ubuntu] Where does Xorg save it's resolution settings now? Ubuntu