top of page

The programming explained

1.PNG
The programming explained: Welcome

1. variable setup which contains every variable inserted within the program.

The programming explained: Text
2.PNG
The programming explained: Image

This shows the change of time in minutes for Fajr (FM), Dhuhr (HM), Asr (AM), Maghrib (MM) and Isha (IM ) prayers at the beginning of the month of Dhu al-Hijjah, and the change of time for Maghrib prayer in hours (MH) at the beginning of the month of Dhu al-Hijjah because during this month the hour of sunset will change followed by the change in the hours of Maghrib prayer

The programming explained: Text

2. an endless loop that never stops named 01.

The programming explained: Text

3.the main screen of the program.

The programming explained: Text
3.PNG
The programming explained: Image

Inside this block is the main screen of the program, where the variable Y represents the movement of the user between the options, and then we find all the shapes on the screen in addition to the 3 of My Block.  These special blocks are the words inside the rectangles, they have been placed in My Block so that we can control their color later

.

The programming explained: Video

1,2 and 3 blocks

4-1.PNG
4-2.PNG
4-3.PNG
The programming explained: Services

4. Loop continues  until the middle brick button is pressed.

The programming explained: Text

5-6. are responsible for movimg one space down or one space up.

The programming explained: Text
5.PNG
The programming explained: Image

We will explain in one block only (FDD) and then mention the difference between them.  
A- Each time we press the Brick's lower button, the wizard will compare whether the variable Y is equal to 5, 30, 55, 80 and 5 , and if yes, it will color a white square to erase what came before it, then draw a new square with black edges, and reflect the color of the text inside.
B- After hiding the shaded square in the way that was mentioned in A, we will color a new square, so we will add the value of 25 to the variable Y, which represents the new co-ordinate of the shaded square, and then the wizard will compare whether the variable Y is equal to 30,55,80,5 where each number  New box

The programming explained: Text

7.  Time counter

The programming explained: Video

All the variables the variables have been defined previously, and you can start the program with a specific number in the variables block.  An increment of 0.5 is increased in the seconds variable every half a second, and as soon as the number reaches 60 it returns to zero and increases one in the minutes variable. In the same way, minutes, hours and days increase.

The programming explained: Text

8. Call for prayers

The programming explained: Video

‏To remind the user of the athan, two conditions must be met in each prayer, the first condition must be the current time corresponding to the athan hour (and the athan clock may be entered as a number or variable) and the second condition is that the current minute corresponds to the athan minute, and if these two conditions are met, he will display a picture of our team logo  HOMIES mentioned the name of the prayer to which the call is made and at the same time the call to prayer is heard in the block AS, and then returns to display the main screen.

‏ ( more than one block has been made for the purpose of calling the prayers according to the screen which will return to it later )

The programming explained: Text

10. Less and More

The programming explained: Video

When the times of the prayers change, it must be taken into account that the numbers may be negative or above 60, and to solve this problem we designed this block, for example, the Fajr prayer whose time is delayed in the month of Dhu al-Hijjah, so the matter was as follows: If Fs is equal to or greater than 60, subtract from it 60 and add 1 to  FM.

Where FM= 60 Fs

The programming explained: Text

11. Options

The programming explained: Video

Within this block all the four options ( Prayer Timing, Thekr, Nexr Prayer and Setting ), where one of them is displayed based on the Y value, which was previously defined in the navigation between the options.

The programming explained: Text
bottom of page