TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136605 times)
  2. FAT32 Library (69806 times)
  3. Network Ethernet Library (55881 times)
  4. USB Device Library (46212 times)
  5. Network WiFi Library (41857 times)
  6. FT800 Library (41067 times)
  7. GSM click (28941 times)
  8. PID Library (26400 times)
  9. mikroSDK (26306 times)
  10. microSD click (25323 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Visual TFT/GLCD Project

Fireworks for Mikromedia PIC32

Rating:

0

Author: Andrew Hazelden

Last Updated: 2013-06-25

Package Version: 1.0.0.0

Category: Gaming and Fun

Downloaded: 733 times

Not followed.

License: MIT license  

The fireworks example creates an animated fireworks show on the Mikromedia PIC32 development board. The fireworks firmware demonstrates a way to use the VisualTFT resource collection feature to create movies. The code was written using VisualTFT and MikroC Pro for PIC32.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Fireworks for Mikromedia PIC32" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Fireworks for Mikromedia PIC32" changes.

Do you want to report abuse regarding "Fireworks for Mikromedia PIC32".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Visual TFT/GLCD Project Blog

Watch a Fireworks Show on Your Mikromedia

The Fireworks firmware lets you watch a fireworks show on your Mikromedia PIC32 Board.

Watch on YouTube
Celebrate any Occasion With Fireworks

Celebrate any Occasion With Fireworks

The fireworks firmware lets you celebrate any occasion with style.

View full image
Fireworks on Your Schedule

Fireworks on Your Schedule

Enjoy a colorful fireworks show on your own schedule.

View full image

Installation

1. Install Firmware: Flash the fireworks.hex firmware file to your Mikromedia PIC32 board.

2. Install resource file: Copy the resource file fireworks.RES to the root folder of your Mikromedia board's Micro-SD memory card.

3. Enjoy the excitement of an animated fireworks show on your Mikromedia PIC32 screen.


Mikromedia Image Sequence Tips:
When creating an image sequence for use with VisualTFT use the file naming convention of image###.bmp   

eg. image000.bmp to image60.bmp

The images should be loaded in Visual TFT using the resource collection icon in the toolbar. Save the images to an external VisualTFT resource file.  

The fireworks_image_sequence.h header file creates the pointer array named "animated_fire" that holds the names of each of the frames in the image sequence.

I looked in the file fireworks_resources.h to find out the names that VisualTFT / MikroC used for each BMP frame in the animation.

When VisualTFT saves an external image resource to the .res file it writes the images pointer address for the image fireworks00.bmp in the resource.h file as:
#define fireworks00_bmp 0x0000070F

If you are creating a pointer array for the images keep in mind that C code arrays start at index position 0. This also means you have to be careful of off by one errors when looping the animation.

eg. The first frame in the array begins at animated_fire[0] and image number 60 is located at animated_fire[59].

There are two ways you can create an animation using MikroC and the TFT Library. You could either use the external TFT image drawing function:
TFT_EXT_Image(0, 0, animated_fire[current_frame], 1);

or your could use the VisualTFT centric workflow of swapping the current image in the picture name attribute. In the events_code.c file you could have a button press that causes an image to be animated.

eg. If you have a VisualTFT image on the current screen named "fireworks" you could swap the picture using:

void fireworksOnPress() {
  current_frame++;
  fireworks.Picture_Name = animated_fire[current_frame];
  DrawImage(&fireworks);
}

ALSO FROM THIS AUTHOR

Mikromedia 3D Sprites

10

This firmware example uses the Libstock TFT Graphics library to render animated 3D Sprites on a Mikromedia PIC32 board. The demo can be controlled using the touch panel or the Mikromedia Gaming Shield.

[Learn More]

ACH SHT1x Click RPi Demo

0

The python based sht1x_click.py demo allows you to read a MikroElektronika SHT1X Click board on a Raspberry PI using I2C via a Pi Click Shield. The SHT1x Click board uses an I2C based Sensiron SHT11 module for reading the temperature and humidity. The RPi I/O uses MikroBus I2C SDA = RPI Pin 3, MikroBus I2C SCL = RPI Pin 5.

[Learn More]

Building an HDR Panoramic Camera Rig

6

This project creates a DIY panoramic camera rig that is capable of capturing fully spherical high dynamic range panoramas. The project uses a modified Canon DSLR battery grip that is interfaced with a MikroElektronia Mikromedia development board. The firmware has been written in C-code using the mikroC Pro for PIC32 compiler, and VisualTFT.

[Learn More]