- Huawei Watch GT 6 és GT 6 Pro duplateszt
- Megjött Magyarországra a legnagyobb akkuval szerelt Redmi
- Újabb hét, újabb Galaxy S26 képek
- Hivatalos a OnePlus 13 startdátuma
- Huawei Mate 10 Pro - mestersége az intelligencia
- Mobil flották
- Fotók, videók mobillal
- Xiaomi 13 - felnőni nehéz
- Vivo X300 - kicsiben jobban megéri
- Végre hivatalos, mikor lesz az S26 hivatalos
Új hozzászólás Aktív témák
-
goodluckbenc
csendes tag
tudna valaki segiteni, egy programot kell irnom ami 1234-et mutat ezt csinaltam eddig de nem akar mukodni.
/*************************************************************************
* A Program for the 7-Segmen Display Module – Task 4 *
*************************************************************************/
#include <reg51.h>
#include <string.h>
/* Declaration of the Data and Clock Bits for the M5450 */
sbit Data = P1^4 ;
sbit Clock = P1^6 ;
//sbit Enable = ? ; /* Only on some Modules but not all */
/* A very short Delay of about 10 microseconds */
/* This doesn’t have to be accurate as explained in the lecture classes */
void M5450_Delay(void)
{
int i;
for (i=0;i<10000; i++)
{
;
}
}
void M5450_Pulse(void)
{
/* This function sends a single clock pulse to the M5450 Driver */
Clock=0;
Clock=1;
M5450_Delay(); /* A short Delay */
Clock=0;
}
void M5450_Send (void)
{
int D0,D1,D2,D3;/* This function sends the 8-bit (byte) D to the M5450 in serial form */
/* with the least significant bit first */
D0=0x66;
D1=0x4F;
D2=0x5B;
D3=0x06;}
/* The following function sends a start pulse to the M5450 */
void M5450_Start(void)
{
//Enable = 0; /* Eliminate this line if there is no Enable pin defined */
Data = 0;
M5450_Pulse();
Data = 1;
M5450_Pulse();
}
/* The Main Program */
void main (void)
{
/* Declaration of all local variables in the main part of the program */
/* First Send a Start Pulse to the M5450 */
M5450_Start();
for(;
{
M5450_Send(0x66);
M5450_Send(0x4F);
M5450_Send(0x5B);
M5450_Send(0x06);
/* Send a further Three Clock Pulses to Complete the 35 Pulses */
M5450_Pulse();
M5450_Pulse();
M5450_Pulse();
}
Új hozzászólás Aktív témák
● ha kódot szúrsz be, használd a PROGRAMKÓD formázási funkciót!
- Gurulunk, WAZE?!
- Bambu Lab 3D nyomtatók
- Huawei Watch GT 6 és GT 6 Pro duplateszt
- Megjött Magyarországra a legnagyobb akkuval szerelt Redmi
- AMD Ryzen 9 / 7 / 5 7***(X) "Zen 4" (AM5)
- Kormányok / autós szimulátorok topikja
- Luck Dragon: Asszociációs játék. :)
- Besegít az AI a zöldségespultnál
- Autóápolás, karbantartás, fényezés
- Futás, futópályák
- További aktív témák...
- MSI RTX 3070 8GB GDDR6 GAMING Z TRIO Eladó!
- ThinkPad T14s Gen2i 14" FHD IPS i7-1165G7 16GB 512GB NVMe magyar vbill ujjolv IR kam új akku gar
- Ps2,Ps3,Ps4,Ps5,Xbox360,Xbox one,Xbox series,PSP játékok
- Apple iPhone 16e 128 GB Black Garancia Beszámítás Házhozszállítás
- X1 Carbon 9th 14" FHD+ IPS i5-1135G7 16GB 256GB NVMe magyar vbill ujjolv IR kam gar
- Keresünk iPhone 16/16 Plus/16e/16 Pro/16 Pro Max
- GYÖNYÖRŰ iPhone 12 mini 256GB Black-1 ÉV GARANCIA -Kártyafüggetlen, MS3626, 100% Akkumulátor
- szinteÚJ Nubia REDMAGIC 11 Air (NX799J) 1év gar
- Xbox One S 1 TB + kontroller 6 hó garancia, számlával!
- 195 - Lenovo Legion Pro 5 (16IAX10) - Intel Core U7 255HX, RTX 5070
Állásajánlatok
Cég: Central PC számítógép és laptop szerviz - Pécs
Város: Pécs
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
*************************************************************************/


