-
Thread
C++ Klassen in AVR-Studio
) << '\n'; Die cout-Variante könnte sparsamer werden als printf, da printf einen Formatstring-Parser und alle unterstützten Konvertierungen enthält. Selbst wenn ich nur einen String ausgebe, wird gleich alles mit reingenommen. Bei cout fällt der Parser weg und es werden immer nur die Konvertierungen
malloc aufrufen könnte. Ich wüßte auch nicht, wo sowas implizit nötig wäre (abgesehen von operator new, für welchen aber auch keine Implementation existiert).
-
Thread
Webserver ATmega32/644DIP ENC28J60
a + 37; http_entry[index].new_page_pointer=http_entry[index].new_page_pointer+5; } } [/c]
http_entry[index].new_page_pointer-1,4)==0) { b = (pgm_read_byte(http_entry[index].new_page_pointer+3)-48)*10; b +=(pgm_read_byte(http_entry[index].new_page_pointer+4)-48);
-
Thread
Textbrowser: Link folgen
Hier mal ein Simples Beispiel für alle Interessierten: [code] #!/usr/bin/perl -w #use strict; use WWW::Mechanize; use WWW::Mechanize::FormFiller; use URI::URL; #use Date::Calc qw(Today); use Date::Calc qw(Today Day_of_Week Decode_Month Add_Delta_YMD Date_to_Days
file2 = sprintf("_%02d_%02d_%d", $day, $month, $year); my $agent = WWW::Mechanize->new( autocheck => 1 ); my $formfiller = WWW::Mechanize::FormFiller->new(); $agent->agent('User-Agent=Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.7')
-
Thread
Bewertungssystem Buggy? Gesperrt
(parseFloat(userId))) { // Positiv div.style.backgroundColor = color_positive } else if ((User_id_watchlist.includes(userId) || User_name_watchlist.includes(userName)) && !isNaN(parseFloat
) { const postDate = new Date(timeElement.getAttribute('datetime')); const currentDate = new Date(); const diffTime = Math.abs(currentDate - postDate); const diffDays = Math.ceil(diffTime / (1000
-
Thread
C#: char array size im Laufzeit setzen
Zeile Hier mein Problem: Um die Zeichen im Char array zu schieben habe ich vorher eine char[]=new char[11] definiert. Ich habe also zum Begin ['0','0','0','0','0','0','0','0','0','0']. Wenn die Zeichen eingeschoben sind ZB die erste (00001) dann sehe ich ['0','0','0','0','1','0','0','0','0','
string s = "00001; 032145,0232; 23456; 05,014; 23,0312154; 2351458654;"; list<float> zahlen = new list<float>(); s = s.replace(" ", "" ); foreach( string ss in s.Split(";" ) { float f = float.Parse( ss ); list.add( f ); } jetzt hast du alles in der liste "zahlen" drin.
-
Thread
Alles Rund um den MEDION LIFE P89626 NAS
iocharset=utf8,shortname=mixed" yaffs: Bad mount option "iocharset=utf8" NTFS-fs warning (device sda1): parse_options(): Option iocharset is deprecated. Please use option nls=<charsetname> in the future. NTFS-fs error (device sda1): parse_options(): Unrecognized mount option shortname. [/code] Hier wird
ums-datafab usbcore: registered new interface driver ums-freecom usbcore: registered new interface driver ums-isd200 usbcore: registered new interface driver ums-jumpshot usbcore: registered new interface driver ums-sddr09 usbcore
-
Thread
Speichern von verschiedenen Messwerten auf SD-Karte
millisecond, and read data from the GPS for you. that makes the // loop code a heck of a lot easier! useInterrupt(true); delay(1000); // Ask for firmware version mySerial.println(PMTK_Q_RELEASE); } // Interrupt is called once a millisecond, looks for any new GPS data, and stores it SIGNAL
// BESCHLEUNIGUNGSSENSOR // if a sentence is received, we can check the checksum, parse it... if (GPS.newNMEAreceived()) { // if (GPS.fix) { /* Display the results (acceleration is measured in m/s^2) */ Serial.print(event.acceleration.x); Serial.print
-
Thread
avr-gcc: _spawnv: No such file or directory
Hi, I tried new WinAVR today under Win98SE and have the same problem. It's not due to cygwin dlls. I played a bit aroud and found that if I replase avr-gcc.exe by older version (I use 4.1.1 prerelease) the _spawnv
answered that he will try to incorporate the suggested fix in the avr-gcc of the next WinAVR-release. The new version should be available soon. Martin Thomas
-
Thread
Methoden geerbter Klassen mit unterschiedlichen Rückgabewerten
main () { std::vector<std::unique_ptr<Param>> params; { // Variante 1, mit setValue auto newParam = std::make_unique<ParamInt> (); newParam->setValue (std::stoi ("42")); params.push_back (std::move (newParam)); } { // Variante 2, mit Konstruktor auto newParam = std::make_unique<ParamInt> (std::stoi ("21")); params.push_back (std::move (newParam)); } { // Variante 3, mit template auto newParam = std::make_unique<ParamGeneric<double>> (std::stod ("10.5")); params.push_back (std::move (newParam)); } for (auto& p
-
Thread
Faktensammlung Buderus EMS
@Juergen O i'M also interested when you succeeded with a new PCB based on ESP8266-12. My ESP8266-12 is underway. If you are making new ones, count me in for one. Hope indeed to have it powered by the bus
Hier der Links zum ersten Code zur CRC-Berechnung: https://www.mikrocontroller.net/topic/141831?goto=new#1692573
-
Thread
Einfacher Interpreter für Komandozeilen/Befehlszeilen
156: error: 'UCSRC' undeclared (first use in this function) ../AVR_CMD_INTERFACE.c:158: error: 'UBRRH' undeclared (first use in this function) ../AVR_CMD_INTERFACE.c:158: error: 'UBRRL' undeclared (first use in this function) make: *** [
Kommandozeilen Interpreter zu machen. Zu finden unter hier : http://www.mikrocontroller.net/topic/175946#new Bei meinem Parser ist die Syntax frei wählbar (also nicht beschränkt af Befehl Op1, Op2, Op3, Op4, Op5), ebenso die Anzahl der maximal möglichen übergebenen Parameter ist einstellbar. Ansonsten
-
Thread
Basic-Interpreter auf einem AVR
java verwenden und auf der nanovm lauffen lassen ?? aka http://www.mikrocontroller.net/topic/29337#new lg roman
ifndef __UBASIC_CONFIG_H__ #define __UBASIC_CONFIG_H__ // AVR-spezifischen einschalten #ifndef USE_AVR #define USE_AVR 1 #endif // regulaere Standardausgabe #if USE_AVR #define PRINTF(...) usart_write(__VA_ARGS__) #else #define PRINTF(...) printf(__VA_ARGS__) #endif // grml
-
Thread
Sipdial per ESP8266 an Fritzbox
tagid = Random(); branchid = Random(); } } else { cseq = 2; if ( ParseParameter(caRealm, 128, " realm=\"", p) && ParseParameter(caNonce, 128, " nonce=\"", p)) { // using output buffer to build the md5 hashes // store the md5 haResp to end
; AddSipLine("Content-Length: 0"); AddSipLine(""); caRead[0] = 0; SendUdp(); } // parse parameter value from http formated string bool Sip::ParseParameter(char *dest, int destlen, const char *name, const char *line, char cq) { const char *qp; const char *r; if ((r = strstr(
-
Thread
Warum Zeiger auf Funktion?
done ;-) int (*pCommand)(int argc, char **argv) = 0; while(1) { os_evt_wait_or (SHELL_NEW_CMD_READY, 0xffff); // set task to sleep until a new command comes in if(*argvShell[0]) { pCommand = TranslateCommand(argvShell); if(pCommand) retValue = pCommand(argcShell
umbiegen. Jörg Wunsch schrieb im Beitrag #2568993: > ußerdem musst du das Fahrrad (sprich, das Parsen des Formatstrings > und die Auswertung der Argumente) nicht nochmal erfinden wie in > einer eigenen printf-Implementierung. Das macht die Bibliothek an > genau einer Stelle. Das Parsen des Formatstrings
-
Thread
Auswertung eine boolschen Terms in JavaScript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#Never_use_eval!
s = arguments[0]; for (var i = 0; i < arguments.length - 1; i++) { var reg = new RegExp("\\{" + i + "\\}", "gm"); s = s.replace(reg, arguments[i + 1]); } if (printf_use_buffer) txb_write(s); else write(s); } [/code] Andere noch
-
Thread
Mehrdimensionales Array in VHDL
Mehrdimensionale-Arrays.html Und dann vor allem der hier: http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html Fazit: direkt 5 Dimensionen ohne Weiteres synthetisierbar. > slices, also zusammenhängende Ausschnitte Bei FPGAs ist der Begriff schon /Slices/ für etwas anderes belegt: Xilinx
Mehrdimensionale-Arrays.html > Und dann vor allem der hier: > http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html > Fazit: direkt 5 Dimensionen ohne Weiteres synthetisierbar. Danke >> slices, also zusammenhängende Ausschnitte > Bei FPGAs ist der Begriff schon /Slices/ für etwas anderes
-
Thread
Kann Daten in WIreshark nicht sehen
beiden Programmen verwende ich die gleiche IP-Adresse. Client: [c] ... TcpClient tcpclnt = new TcpClient(); tcpclnt.Connect("192.168.0.101", 8001); // use the ipaddress as in the server program ... [/c] Server: [c] ... IPAddress ipAd = IPAddress.Parse("192.168.0.101"); //use local m/c IP address, and use the same in the client /* Initializes the Listener */ TcpListener myList = new TcpListener(ipAd, 8001); ... [/c]
-
Thread
c# TcpListener mehrere IP-Adressen
view=net-6.0 Zitat: "AcceptTcpClient is a blocking method that returns a TcpClient that you can use to send and receive data. Use the Pending method to determine if connection requests are available in the incoming connection queue if you want to avoid blocking. Use the TcpClient.GetStream method
Für mein Verständnis musst du sowas in der Art machen: [c] TcpListener listener = new TcpListener(IPAddress.Any, Port); listener.Start(); while (true) { TcpClient client = listener.AcceptTcpClient(); clientThread = new Thread(...); clientThread.Start(); } [/c] merciless
-
Thread
Range aus Enum-Type
XST kanns. Und mit dem neuen Parser (ab V6/S6 oder siehe http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html) geht sogar noch mehr: [vhdl] type zustaende is (za, zb, zc, zd, ze, zf, zg, zh, zi); signal z : zustaende
naja, nicht ganz in 30 Sekunden, aber dafür mit Screenshot: [vhdl] library ieee; use ieee.std_logic_1164.all; entity fsm_range_synthesis is port( iClk : in std_logic; oShow : out std_logic ); end entity; architecture test of fsm_range_synthesis is type hallo
-
Thread
EMS > Adapter > NetIO > Raspi
Der Buderus EMS-Bus wird (hier) bisher in drei Threads: http://www.mikrocontroller.net/topic/141831#new http://www.mikrocontroller.net/topic/210031#new http://www.mikrocontroller.net/topic/309075#new und in Ingo.F's Wiki: http://ems-gateway.myds.me/dokuwiki/doku.php detailliert beschrieben. Im
mysql_pass) //or die("Keine Verbindung zur Datenbank moeglich: " . mysql_error()); //mysqli_query("use ems_data"); $mysqli = new mysqli($mysql_host, $mysql_user, $mysql_pass, 'ems_data'); if ($mysqli->connect_error) { die('Connect Error (' . $mysqli->connect_errno . ') ' . $mysqli
-
Thread
keep-attribute
ein Boolean, das müsste stimmen. Habe aber folgende Bedingung im Manual überlesen: > You cannot use this synthesis attribute for signals that have no fan-out. Wie also mache ich das Signal verfübar, ohne künstlich nicht benötigten Fanout einzubauen?
findet. Da sind sicher noch einige andere solcher Perlen unterwegs... ;-) Das mit dem neuen Parser für die "alten" S3 und V5 dürfte sich zwischenzeitlich rumgesprochen haben... http://www.lothar-miller.de/s9y/archives/79-use_new_parser-YES.html
-
Thread
Pollin MOTOROLA VIP1710
@Martin V.: Thanks for the new version how can i use the languages in the etc folder? in osd vdr i only can use english the plugrc have a bug .. we should add this before mounting mnt rw --- rm /etc/fstab
after making an new channel list use telnet on the IP of the box and type "sync" before rebooting the box. CAOS
-
Thread
Potenzieren in csharp
Achtung, beim Parsen wird jetzt aber immer noch die lokale Kultur (wahrscheinlich DE?) verwendet! Bei ToDecimal kann auch die invariante Kultur angegeben werden. Wenn es hässlich ist, einfach in mehrere Zeilen aufteilen
InvariantCulture schrieb im Beitrag #6372930: > Achtung, beim Parsen wird jetzt aber immer noch die lokale Kultur > (wahrscheinlich DE?) verwendet hab ich geprüft, wird nicht.
-
Thread
ATMEL SAM3X8 (Arduino Due) printf auf beliebiges Device umleiten?
application code */ while (1) { } } [/c] Toolchain -> ARM/GNU Linker -> General [pre] [x] Use Size optimized library (--specs=nano.specs) Additional Specs: Use syscall stubs [/pre] Toolchain -> ARM/GNU Linker -> Miscellaneous [pre] Linker Flags: -Tsam3x8e_flash.ld -lc -u _printf_float
erneuter Google Suche den Thread hier im Forum: https://www.mikrocontroller.net/topic/359573?goto=new#new Und dort steht, daß man den Stackalign auf 8 ändern soll. gesagt, getan. Die letzte Zeile in "meinem" File: sam3xaflsch.ld geändert von: /* Stack starts at end of ram */ _estack
-
Thread
Wittig(welec) DSO W20xxA Open Source Firmware (Teil3) Gesperrt
stable, the trigger works fine even at high frequencies and in all circumstances!!! Is really how to use a different DSO, a new DSO!!! No words, RESPECT!!! Gute Sonntag an alle Vielen Dank!!! Gruß Luc
Avarage on -> 195 Frames/min This is really very impressive! As I already got to write, the new firmware is light years away from the Welec, it is another world. It is as how to use a different DSO, a new more better DSO! RESPECT and thank You very much Hayo!!! Hayo W. schrieb: >Was ganz
-
Thread
AVRDUDE 6.0 freigegeben
you need to change 'type = XYZ;' to 'type = "XYZ";' in own config files. (internal: The parser does not need to know all programmer types now, new programmers will update only the table in pgm_type.c.) - The erase cycle counter (formerly options -y / -Y) has been
- The "verbose" terminal mode command allows to query or modify the verbosity level. * New devices supported: - ATmega48P (patch #7629 add support for atmega48p) - AT90PWM316 (bug #21797: AT90PWM316: New part description) - ATxmega16D4, ATxmega32D4, ATxmega64D4, ATxmega128D4
-
Thread
JavaScript Funktion lässt sich nicht ausführen
}; var ctx = document.getElementById("diagrammMessung").getContext("2d"); window.myLine = new Chart(ctx).Line(lineChartData, { responsive: true, pointDot: false }); } function changeSignal(auswertung) { "use strict"; if (auswertung === 1) { document.getElementById
} function startMeasure() { "use strict"; var request = false; window.myLine.destroy(); request = new XMLHttpRequest(); if (request) { request.open("GET", "/startmeasure?id=" + Math.random(), true); request.send
-
Thread
FPGA DEV Board
gibt da einen länglichen Thread dazu: https://www.mikrocontroller.net/topic/fpga-iot-maker-board#new Wenn es Xilinx+Vivado sein sollen, dann wäre für einen Einstieg das "Arty Artix-7 35T FPGA Evaluation Kit" vermutlich ganz gut geeignet. Preislich wohl eher schon etwas grenzwertig. Beide Boards
aber keinen Grund, warum man's nicht > zum Laufen kriegen sollte. Jepp. Um z.B. für den S3E den Parser vom Spartan6 zu verwenden muß im .xst die Zeile "-use_new_parser Yes" ergänzt werden. Möglicherweise sind aber in der "ISE 14.7/Windows 10" weitere Sprengfallen versteckt, die eine Nutzung für Spartan
-
Thread
IEEE.STD_LOGIC_ARITH.ALL obsolete
Von mir aus: [VHDL] LIBRARY IEEE; use IEEE.std_logic_1164.all; --use IEEE.std_logic_unsigned.all; --use IEEE.std_logic_arith.all; use IEEE.NUMERIC_STD.ALL; [/VHDL]
Klaus S. schrieb im Beitrag #6603396: > Seitdem sehen meine Header soLIBRARY IEEE; > USE IEEE.STD_LOGIC_1164.ALL; > USE IEEE.STD_LOGIC_SIGNED.ALL; > USE IEEE.NUMERIC_STD.ALL; > oder so ausLIBRARY IEEE; > USE IEEE.STD_LOGIC_1164.ALL; > USE IEEE.STD_LOGIC_UNSIGNED.ALL; > USE IEEE.NUMERIC_STD.ALL
-
Thread
Enhancing Code Efficiency in C++
directly? I'll only need to learn one language, need only to check and understand one language and can use the IDE much more efficient.
as Windows the same as every application that is around for some time. And especially when you try new versions of OS's on the same machine you can not ignore that the newer version can do more, but mostly useless stuff, and gets a lot bigger and slower. Michael B. schrieb im Beitrag #7663933: >