-
Thread
AS1100 (oder so) programmieren
Hallo erstmal. Ich wollte eine 7-Segment steuerugn bauen. Dafür hatte ich an den AS1100 (odere spätere Modelle) gedacht. Mein problem ist jetzt, dass ich keine Ahnung habe, wie man diesen programmiert bzw. ansteuert. Ich hab mir das Datenblatt angesehen und weiß jetzt zwar, dass man
-
Thread
FYI Heise: AES auf AVR ATmega
Cryptography Engineering, Teil 4: AES auf AVR ATmega http://heise.de/-1442338
-
Thread
AS6C4008 ansteuern
74hc595 wieder auszugeben. Das Problem ist, dass immer nur dass rauskommt, was ich als letztes in den AS6C4008 geschrieben habe. Ich vermute, dass der Schreibvorgang gar nicht erst funktioniert hat, sondern der Atmega32 nur den Datenbus ausliest und dort immer noch dass drin steht, was eigentlich als letztes geschrieben werden sollte. Im Anhang ist der Quellcode in C und das Datenblatt des AS6C4008. Anmerkungen: PORTC = Datenbus, PORTD(PIN 0,1,2) = 3 kaskadierte 74hc595 für die Adressierung an den AS6C4008, PORTD(PIN 3,4,5) = WE, OE, CE für die Steuerungspins des SRAMs, PORTD(PIN
-
Thread
Funk Controller für AS-Motor
Hallo Experten, ich muss als Hausarbeit eine Drehvorrichtung entwerfen. Doch das soll nicht der springende Punkt sein. Zum Antrieb soll ein Asynchronmotor verwendet werden, da eine stufenlose Drehzahlregelung erfolgen soll. Ich habe mir diesen hier herausgesucht: http://www.orientalmotor.de/de/sites/produkt_4.php?ida=1&idser=106&idpr=3085&sgid=88 Zu diesem ist auch ein Controller. Nun würde ich gern den Motor über eine Fernbedienung steuern (an, aus und Geschwindigkeit) und bräuchte dazu, wie ich gelesen habe, einen Funk-Controller, den es wohl als Steckmodul geben soll und alles in allem
-
Thread
Magnet für AS5045 gesucht
Hallo ich suche einen Magneten für den AS5045 Drehgeber. Im Datenblatt steht dass dieser 45- 75 mT haben soll. wo bekomme ich so einen her.
-
Thread
hat jemand Erfahrung mit dem Drehgeber AS5045?
Hallo hat schon mal einer von euch etwas mit dem Drehgeber AS5045 realisiert? Kann ich den Serial out an einen belibigen Pin meines Mega8 anklemmen? Dürfen die Leitungen wirklich nur 6 cm lang sein? Wie siehts da mit der Auswertung aus? Seit ihr generell zufrieden
-
Thread
AES, Rijndael, WinAVR, Library
Hallo *, hier ist eine AES Library fuer den ATMega644 mit Demoapplikation und Uart Ausgabe. Die Verschlüsselungsroutinen sind im Original von B.Poettering in Atmel Assembler codiert gewesen. Ich habe sie auf den WinAVR portiert
-
Thread
Grundig Prüfsender AS 2 Zubehör
Hallo, vielleicht kann mir jemand hier helfen. Ich suche das Zubehör für den AS 2. Genauer das Breitband-Symmetrieglied Typ 6046 und den UKW-Abschwächer -60db Typ 6044. Ev. noch die künstliche Antenne Typ 6045 und das Verbindungskabel Typ 6047 MfG. Bernd
-
Thread
Kontaktloser Drehzahlsensor AS5020-E
hallo, hat jemand zufällig schon Erfahrung mit dem kontaktlosen Drehzahlsensor AS5020-E von austriamicrosystems. Ich will damit meine Drehzahl anhand des Magnetfeldes messen. Als Schnittstelle will ich eine SSI Schnittstelle verwenden , meine Frage jetzt ob ein Programm dafür bereits
-
Thread
Suche Magnetic Sensor AS5311
Moin ! Hat jemand noch so ein AS5311-TS_EK_AB Sensor Board rumliegen, braucht das nicht mehr und verkauft ohne Mindestbestellwert und und und.....? Danke
-
Thread
IAR Projekt mit AS7 öffnen
Servus, kann ich irgendwie ein IAR Projekt für AVR (AVR449) ins Atmel Studio übernehmen? Danke im Voraus!
-
Thread
Ätznatron auf dem Index?
Zeugs raus. War nicht vor Jahren die ganze HF-Branche kurz vor dem geplanten (!) Aus, weil da in GaAs etwas Arsen verbaut ist? "Die Dosis macht das Gift!"
#7609863: > War nicht vor Jahren die ganze HF-Branche kurz vor dem > geplanten (!) Aus, weil da in GaAs etwas Arsen verbaut ist? Beleg?! Oder wolltest du einfach mal wieder einen raushauen?
-
Thread
verrückte Digital Audio frage
andere Komplexität... Außerdem ist ein Cat5 in der Regel schon zigmal besser als das, was man so an AES/EBU-Mikrofonkabel verkauft bekommt, und günstiger ists obendrein. Die AES arbeitet aktuell auch an einem Standard, um 2x AES3 plus Fast Ethernet zusammen über ein Cat5 zu übertragen. So abwegig ist die Idee mit AES3 über Cat also nicht, sollte das die Intention von Boris sein.
-
Thread
Warum ist das Universum nicht zu einer Singularität kollabiert?
Was auch nur eine Theorie ist. Es gibt mittlerweile so einige Ansätze, die darüber hinaus gehen... "As is well known, the main features of quantum mechanics, like the Schrödinger equation, for example, have only been postulated, but never derived from some basic principles. (Cf. Murray Gell-Mann: “Quantum
correct theory must fit.”) Even in causal interpretations of the quantum mechanical formalism, such as the de Broglie-Bohm theory, the quantum mechanical wave function, or the solution of the Schrödinger equation, respectively, is taken as input to the theory (sometimes even as a “real” ontological field
-
Thread
Atmega8L: Warum geht Timer0 Interrupt nicht?
poste: $regfile "m48def.dat" $crystal = 10000000 $baud = 9600 Config Portb = Output Dim A As Integer 'Winkel Alpha Dim B As Integer 'Sin- Wert von Alpha Dim C As Integer 'Ein- Zeit der PWM (indirekte Spannung) Dim D As Integer 'Winkel Dim E As Integer Dim W As Byte 'PWM- Timer ==================================================================== Config Timer1 = Pwm ,
-
Thread
Audio frequenz erkennung
Config Pind.6 = Output Config Timer1 = Timer , Prescale = 64 , Capture Edge = Rising Dim Wtime As Byte Dim Timercounter As Word On Capture1 Captmr Wtime = 100 Timercounter = 0 Enable Interrupts Enable Capture1 Do 'Set Portd.6 Waitms Wtime 'Reset Portd.6 Waitms Wtime
regfile = "ATtiny2313.dat" $crystal = 10000000 $framesize = 32 $swstack = 32 $hwstack = 32 Dim A As Word 'int0 teller Dim B As Word 'tijdelijke int0 waarde Dim C As Byte
-
Thread
Usart (Fleury) Übertragungsprobleme.
uart1_putc( (unsigned char)c ); } } } // Enhanced delay-routine (wait) as as the standard delay routine (_delay_ms) is not able to delay // more than 17 ms maximum as of the used 8-bit-timer (depending on used crystal) void delay_ms(uint16_t period) //delay routine (milliseconds
delay_ms(1000); put_s("Test"); } } // Enhanced delay-routine (wait) as as the standard delay routine (_delay_ms) is not able to delay // more than 17 ms maximum as of the used 8-bit-timer (depending on used crystal) void delay_ms(uint16_t period) //delay routine
-
Thread
Suche Browser unter Windows, welcher Multiscreen - Vollbild beherscht.
Eigenen"? Hier in VB basierend auf Webview2: [code] Public Class frm_Main Private isFullscreen As Boolean = False Private normalBounds As Rectangle Private normalBorder As FormBorderStyle Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load WebView.Source
(sender As Object, e As KeyEventArgs) Handles WebView.KeyDown If e.KeyCode = Keys.F11 Then ToggleFullscreen() e.Handled = True End If End Sub End Class [/code]
-
Thread
/var/log/debug für Joachim B.
aber immer so aus (weitere Argument weggelassen) [code] /usr/bin/synergy-core --client -f --run-as-uid 1000 --display :0 --debug DEBUG [/code]
sieht aber immer so aus (weitere Argument > weggelassen) /usr/bin/synergy-core --client -f --run-as-uid 1000 > --display :0 --debug DEBUG Kannst du eventuell den Aufruf "/usr/bin/synergy-core --client -f --run-as-uid 1000 --display :0 --debug ERROR" direkt ins Unitfile einsetzen, statt dem synergy-service
-
Thread
Atmega 328p und FT232RL Problem
translated into instructions / language the uController will understand. 3) Code into uCcontroller As you might understand, when writing sourcecode, translate it into binary code, will still not make the uController work as you like. The sourcecode needs to be stored / written into the uController. Upto
more than a "USB to serial port" converter. It's not a programmer, it's just a tool which can act as a front-end for a programmer (in this case). P.S.3. I'm sure there are people who like to add info about what I wrote. Feel free, to do so, in order to make things more clear for Tony and other people
-
Thread
Externe Soundkarte bei Audiobearbeitung
die Stückzahlen niedrig und die Schmerzgrenzen hoch ;) Aber mal von internen Karten für multiples AES3 oder MADI-IO (zB. RME HDSPe AES/MADI) abgesehen, ist deren Zeit eigentlich auch schon abgelaufen. Und selbst AES3/MADI wird langsam obsolet, Dante/Ravenna/AES67 über Netzwerk ersetzt den teuren Audiokabelkram
Firmware, und bis 48kHz. RME laufen die PCI, PCIe und Mini-Express-Karten (auf analog IO, MADI,AES, ADAT ...). Diese auch bis 192kHz Und die sind die schnellsten, weil USB protokollbedingt immer noch 1 bis 2 ms zusätzlich braucht. MADI an USB gibt es noch das MADI UB Digico Madi UB, wieder bis
-
Thread
IAR for ARM - IRQ-Funktion nur kompiliert wenn im Code referenziert
TIM2_IRQn); __enable_irq(); TIM2->CR1 = TIM_CR1_CEN; } int main() { /* Set System-Clock as high as possible */ RCC->CFGR = RCC_CFGR_SW_1 | RCC_CFGR_PLLMULL_3 | RCC_CFGR_PLLMULL_2 | RCC_CFGR_PLLMULL_0; RCC->CR = RCC_CR_HSION | RCC_CR_PLLON; /* Set GPIO C13 as High-Speed PushPull
MemManage_Handler ; MPU Fault Handler ... DCD DMA2_Channel5_IRQHandler ; DMA2 Channel 5 DCD AES_IRQHandler ; AES DCD COMP_ACQ_IRQHandler ; Comparator Channel Acquisition dann folgen die *schwachen* Definitionen: ... PUBWEAK SysTick_Handler SECTION .text:CODE:REORDER(1
-
Thread
SUCHE - Netzwerkkarte mit RTL8019 Chipsatz
oha davon hätt ich auch gerne 2 ... also die netzwerkkarte mit dem RTL8019AS Danke im voraus .... Schöne Grüße
Nabend, eine Karte mit RTL8019AS habe ich noch als Reserve liegen, bei Interesse einfach melden. Sirko
-
Thread
Knacknuss Text aus PDF extrahieren
könnte: https://stackoverflow.com/questions/3488042/how-can-i-extract-embedded-fonts-from-a-pdf-as-valid-font-files
fonts may be made without reference to a character collection by using an "identity" encoding, such as Identity-H (for horizontal writing) or Identity-V (for vertical). Such fonts may each have a unique character set, and in such cases the CID number of a glyph is not informative;" wenn es keine
-
Thread
Merkwürdige Compileroptimierung, wo liegt (mein) Denkfehler
constraints imposed by language standards. This may cause non-conforming programs to no longer work as expected, such as SPEC CPU 2006 464.h264ref and 416.gamess. A new option, -fno-aggressive-loop-optimizations, was added to disable this aggressive analysis. In some loops that have known constant
gesehen. Zitat: > If the member used to read the contents of a union object is not > the same as the member last used to store a value in the object, > the appropriate part of the object representation of the value is > reinterpreted as an object representation in the new type ... > This might
-
Thread
PIC18f1330 - Konfiguration
Reset bzw. nach Power-On so aus: > ---01111 > und bei bit 3-0 steht die '1' für: Port is configured as RAx > Passt also soweit. Aus dem Datasheet: DS39758C-page 81 Note: On a Power-on Reset, RA0, RA1, RA4 and RA5 are configured as analog inputs and read as ‘0’. RA2 and RA3 are configured as
Datasheet: DS39758C-page 81 > > Note: On a Power-on Reset, RA0, RA1, RA4 > and RA5 are configured as analog inputs > and read as ‘0’. RA2 and RA3 are > configured as digital inputs. Mh, sehr seltsam. In dem gleichen Datasheet ist in der Tabelle aus Seite 42 aber was ganz anderes geschrieben.
-
Thread
LED Dimmer mit ATiny13 und einem Taster
"Attiny13.dat" $crystal = 1200000 $hwstack = 10 $framesize = 17 $swstack = 0 Dim Hell As Word Dim An As Word Dim Aus As Word Dim Pressed As Word Dim Neu As Word Dim Heller As Word Dim Dunkler As Word Dim Pwm As Word Dim Analog As Word Dim Dimm As Word Const Starthelligkeit
= "Attiny13.dat" $crystal = 1200000 $hwstack = 10 $framesize = 17 $swstack = 0 Dim Hell As Word Dim An As Word Dim Aus As Word Dim Pressed As Word Dim Neu As Word Dim Heller As Word Dim Dunkler As Word Dim Pwm As Word Dim Analog As Word Dim Dimm As Word Const Starthelligkeit
-
Thread
STM32F407VGT6 China Board not working Tips?
project. I have a sample code which works on the Discovery and i flashed the code with my Nucleo Board as programmer into the China Board which was a success. I tried two ways, first the SWD Header on the Nucleo like here: (https://developer.mbed.org/questions/7974/F401RE-Cut-off-ST-LINK/) i also soldered
------------- 2.2.12 Clocks and startup On reset the 16 MHz internal RC oscillator is selected as the default CPU clock. The 16 MHz internal RC oscillator is factory- trimmed to offer 1% accuracy over the full temperature range. The application can then select as system clock either the RC oscillator
-
Thread
Problem Zufallsgenerator
start , you must set this correctly for Stack out SPL,r16 ldi Temp, Wza ; Switch Port B as bit 0 -3 Output , bit 4 as input out DDRB, Temp ldi Temp, Wza ; All LEDs off out PortB,Temp ldi temp,0b00110000 ;turn on sleep mode and power out MCUCR,temp ;down plus
************************** longDelay: mov temp,speed clr T1 ;T1 used as delay 2nd count clr T2 ;T2 used as delay 3d count delay_1: dec T2 brne delay_1 dec T1 brne delay_1 dec temp
-
Thread
Jtagice mkII und ATMega644
Hallo, ich versuche hier gerade verzweifelt ein Programm mit dem AS 4.19 auf einen ATMega644 mit dem JTAGICE mkII zu spielen und bekomme ständig diverse Fehlermeldungen: Versuch ichs über den den Connect Dialog, poppt das Fenster immer wieder von neuem auf, egal ob
auch nur am USB hängt und trotzdem funktioniert. Gibt sonst noch irgendwelche Einstellungen im AS, die man vornehmen muss, damit das Ganze funktioniert? Danke! Grüße
-
Thread
Einfache CPU, einfacher Rechner, nur zum Lernen, Erfahrung?
Hausmeister in Staatsdiensten??? Wie mein alter Mentor einst dreideutig sagte: "Comparisons are as bad as clichés."
Lizenz (defacto Public Domain). Mit welchem Assembler kann man das assemblieren? Ich vermute AS65 geht nicht.
-
Thread
DS1820
4000000 Config 1wire = Portb.4 'use this pin Dim Ar(2) As Byte , A As Byte , I As Byte , Temperatur As Integer Dim Halb As Byte Config Lcdpin = Pin , Db4 = Portd.0 , Db5 = Portd.1 , Db6 = Portd.2 , Db7 = Portd.3 , E = Portd.5 , Rs = Portd.4 'These settings
festlegen, Schnittstelle wird von BASCOM durch Software realisiert Config 1wire = Portd.3 Dim Dsid(8) As Byte Dim I As Byte Dim Nr As Byte Nr = 1 Cls ' Ersten angeschlossenen DS1820 finden und Adresse auslesen Dsid(1) = 1wsearchfirst() Locate 1 , 1 : Lcd "DS1820 Nr " ; Nr : Nr = Nr + 1 Locate
-
Thread
Projekt Signal-Auswertung mit High-Speed-ADC
limited to 16K or 32K locations, depending on the Chip Select pin being used. Disabling PMCS2 and PMCS1 as Chip Selects allows these pins to function as address lines PMA15 and PMA14, increasing the range to 64K addressable locations. A dedicated I/O pin is required to function as the Chip Select and the
function of this pin. To interface to memory devices larger than 64K, use additional available I/O pins as the higher order address lines A16, A17, A18, etc., as shown in Figure 13-46.
-
Thread
Warum BWL-Manager Ingenieuren intellektuell unterlegen sind
Engineers and scientists will never make as much money as business executives and sales people. Now we have a mathematical proof that explains why this is true: Postulate 1: Knowledge is Power. Postulate 2: Time is Money. As every engineer
: Work Money = ---------- Knowledge Thus, as Knowledge approaches zero (like in the social sub-group indicated from above), Money approaches infinity regardless of the amount of Work done! Gefunden auf 8052.com
-
Thread
define DATE "01.12.2015" trennen
Makros: http://stackoverflow.com/questions/11697820/how-to-use-date-and-time-predefined-macros-in-as-two-integers-then-stri Gruß JensM
aus dem C-Standard selbst: [pre] In this International Standard, ``shall'' is to be interpreted as a requirement on an implementation or on a program; conversely, ``shall not'' is to be interpreted as a prohibition. [/pre] Ich finde das /etwas stärker/ bindend als die im Deutschen übliche
-
Thread
7-Segment Anzeige ansteuern (Gray-Code und ATmega32)
avr.stack = 64 '--------------------------------------- ' define I/O Portpins #define INPUT0 as portA.0 #define INPUT1 as portA.1 #define INPUT2 as portA.2 #define LED_OUT as portd '--------------------------------------- ' setup I/O Portpins INPUT0.mode = input, nopullup INPUT1.mode
-------------------- ' Belegung der LED Segmente ' Wahl des LED Typs #define LED_COMMON_ANODE as 0 #define LED_COMMON_KATHODE as 1 #define LED_COMMON_TYPE as LED_COMMON_KATHODE ' Belegung der LED Segmente am Port LED_OUT ' LED_SEG_DP = Bit7 wird nicht bedient. const LED_SEG_A = (1<<0)
-
Thread
Bascom: Hex per Software UART ausgeben
$framesize = 40 $swstack = 10 $hwstack = 32 $crystal = 14745600 $baud = 9600 Dim S As String * 23 Dim Bytes_to_send(23) As Byte Bytes_to_send(1) = &HA0 Bytes_to_send(2) = &H15 Bytes_to_send(3) = &H01 Bytes_to_send(4) = &H88 Bytes_to_send(5) = &H77 Bytes_to_send(6) = &H48 Bytes_to_send
jetzt der BASCOM Experte zu sein. Ich kann mir nicht vorstellen, das das hier [code] Dim S As String * 23 Dim Bytes_to_send(23) As Byte .... S = Bytes_to_send(23) [/code] von den Datentypen her passen wird. Ich könnte noch nicht einmal sagen, was diese Zuweisung für eine Operation
-
Thread
Atmega8 wird nicht richtig erkannt und kann nicht geflasht werden!
0x00, 0x50, 0x00, 0xe4 avrdude: safemode read 3, lfuse value: e4 avrdude: safemode: lfuse reads as E4 avrdude: usbasp_cpi_cmd(0x58, 0x08, 0x00, 0x00)... avrdude: usbasp_transmit("USBASP_FUNC_TRANSMIT", 0x58, 0x08, 0x00, 0x00) <= [00] [58] [08] [99] avrdude: usbasp_cpi_cmd() => 0x00,
0x00, 0x50, 0x08, 0xff avrdude: safemode read 3, efuse value: ff avrdude: safemode: efuse reads as FF avrdude: safemode: Fuses OK (H:FF, E:99, L:E4) avrdude: usbasp_close() avrdude: usbasp_transmit("USBASP_FUNC_DISCONNECT", 0x00, 0x00, 0x00, 0x00) avrdude done. Thank you. [/code]
-
Thread
6 stellige Zahl auf Ram schreiben
= 61935 Dim A As Byte Dim B As Byte Dim Lesen As Byte '----------= HAUPTPROGRAMM =---------- Cls 'LCD, Inhalt löschen I2cinit 'Anschaltung
Dim Minute As Long sollte helfen ohne den Rest jetzt angeschaut zu haben.
-
Thread
Fragen zu Waveshare e-paper 1.54"
sondern > auch sozialer Art sein. Gerade noch einmal probiert: https://www.google.de/search?as_q=E-Paper+Application+Note&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=&as_occt=any&safe=active&as_filetype=pdf&tbs= Scheint jetzt etwas besser zu sein. Mit freundlichem
-
Thread
Leistungsfresser Firefox?
scheint nicht mehr möglich zu sein https://support.mozilla.org/de/kb/firefox-leistungseinstellungen?as=u&utm_source=inproduct
scheint nicht mehr möglich zu sein > https://support.mozilla.org/de/kb/firefox-leistungseinstellungen?as=u&utm_source=inproduct Gibt es denn "about:config->dom.ipc.processCount" noch?
-
Thread
LookUp Tabelle erstellen
habe es jetzt einfach mit einer Tabelle und der Interpolation gelöst. [code] Sub Mapping(WertIn as word, WertOut as Single,byval Map as String * 10) Dim Wert_Min as Single Dim Wert_Max as Single Dim ADC_Min as Word Dim ADC_Max as Word Dim ADC_DIFF as Word Dim Wert_Diff as single Dim Wert_Min_Diff as Word Dim Delta as single Dim DeltaRound as long Dim ReadOut as String * 20 Dim Trenner as Byte Dim Wert as Single Dim ADC as Word Dim ADCS as String * 5 Open Map For binary As #66
-
Thread
Serialisieren von 64 32 Bit words
Utilization: Number of Slice Registers: 16,060 out of 301,440 5% Number used as Flip Flops: 16,059 Number used as Latches: 1 Number used as Latch-thrus: 0 Number used as AND/OR logics: 0 Number of
1,638 Number used as ROM: 0 Number used as Memory: 0 out of 58,400 0% Number used exclusively as route-thrus: 1,728 Number with same-slice register load:
-
Thread
"Memory Barrier" in C99
Marcus H. schrieb im Beitrag #8014051: > as sind zwei unterschiedliche Adressen, deren Zugriffsreihenfolge in > der Hardware nicht bei jeder Zielarchitektur garantiert ist. Mit > Bordmitteln der Sprache C geht das jedenfalls nicht zuverlässig
Aber: > Unlike in C++, inline assembly is treated as an extension in C. > It is conditionally supported and implementation defined, > meaning that it may not be present and, even when provided > by the implementation, it does not have a fixed meaning
-
Thread
Eigene SoC-Software vor Duplizierung schützen
surest way to protect the confidentiality of your IP is to encrypt the configuration data using an AES-256 key. Keys for the on-chip decryption logic can be stored in either battery-backed RAM or one time programmable eFUSEs. This technique allows for off-chip storage of your IP protected with high
Authentication The UltraScale architecture-based FPGAs have on-chip Advanced Encryption Standard (AES) decryption and authentication logic to provide a high degree of design security. Without knowledge of the encryption key, adversaries cannot analyze an externally intercepted bitstream to modify
-
Thread
Lauflicht mit ATMEGA 8
Output Config PortB = Input Config PinC.3 = Input Config PinC.2 = Output Config .... DIM VariableA as byte DIM VariableB as integer .... ‘Hauptprogramm ist immer eine Endlosschleife DO ...... ...... LOOP END MfG
1000000 $regfile = "m8def.dat" Config Pind.2 = Input Portd.2 = 1 Config Portb = Output Dim X As Integer X = 200 Dim Y As Byte Do If Pind.2 = 1 Then Portb = &HFF Else Portb = 0 Portb.y = 1 Y = Y + 1 If Y = 8 Then Y = 0
-
Thread
Leseprobleme mit dem DHT21 an einem D1 Mini V3
nicht 13 > > void setup() > { > pinMode(GPIO_NR, OUTPUT); // sets the digital pin GPIO_NR as output > digitalWrite(GPIO_NR, HIGH); // sets the digital pin GPIO_NR on > } > > void switch_power_off_on > { > digitalWrite(GPIO_NR, LOW); // sets the digital pin GPIO_NR off > delay(
Variable "now" deklariert aber in "time.h" gibt es die Funktion "now(); // Returns the current time as seconds". Das gleiche mit "time". Erste ein Funktionsaufruf, dann eine Variablendeklaration. Auch wenn es funktioniert finde ich das kein schönen Programmierstiel.
-
Thread
Womit programmiert ihr eure µCs?
1. AVR ( Mega,Tiny, XMega) , STM32 2. C, Assembler (STM32 nur in C) 3. AVRISP MkII, ST-Link 4. AS4, AS5 (testweise), Atollic TS Lite für STM32 Früher mal MCS51 mit MIDE51 und dem AVRISP MkII
* AVR 8 Bitter * Assembler, C (WinAVR, avrdude), Luna * Diamex Prog-S Früher mal 65xx (cg65, as65 Manx Aztek). Wird das mal eine Statistik ?
-
Thread
USB-Joystick was ist möglich
PC-Gamepad) ... Zum auslesen verwende ich die JoyGetPosEx.DLL [code] TYPE TJOYINFOEX dwSize AS LONG dwFlags AS LONG dwXpos AS LONG dwYpos AS LONG dwZpos AS LONG dwRpos AS LONG dwUpos AS LONG dwVpos AS LONG dwButtons AS LONG dwButtonNubmer AS LONG dwPOV AS LONG dwReserved1 AS LONG dwReserved2 AS LONG END TYPE DECLARE FUNCTION JoyGetPosEx LIB "WINMM" ALIAS "joyGetPosEx" (uJoyID AS LONG, JoyInfo AS TJOYINFOEX) AS LONG [/code] von den 6 möglichen Analoge Eingänge
-
Thread
BASCOM Uhr mit Butterfly
clock started so interrupts are not enabled ' Enable Interrupts 'dim the used variables Dim Lvar1 As Long Dim Mday As Byte Dim Bweekday As Byte , Strweekday As String * 10 Dim Strdate As String * 8 Dim Strtime As String * 8 Dim Bsec As Byte , Bmin As Byte , Bhour As Byte Dim Bday As Byte , Bmonth As Byte , Byear As Byte Dim Lsecofday As Long Dim Wsysday As Word Dim Lsyssec As Long Dim Wdayofyear As Word Do ' Example 1 with internal RTC-Clock _sec = 12 : _min = 30 : _hour = 18