TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (91 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 (139266 times)
  2. FAT32 Library (71755 times)
  3. Network Ethernet Library (57128 times)
  4. USB Device Library (47432 times)
  5. Network WiFi Library (43093 times)
  6. FT800 Library (42408 times)
  7. GSM click (29835 times)
  8. mikroSDK (28101 times)
  9. PID Library (26886 times)
  10. microSD click (26198 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

Mikromedia Panorama Viewer

Rating:

0

Author: Andrew Hazelden

Last Updated: 2013-01-01

Package Version: 1.0.0.0

Category: Gaming and Fun

Downloaded: 788 times

Not followed.

License: MIT license  

The Mikromedia Panorama example displays a 1920x240px cylindrical panorama on the Mikromedia dsPIC33 or PIC32 screen. The panorama example was created to show how the VisualTFT resource collection feature can be used to load sliced images. The code was written using VisualTFT and MikroC Pro.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Mikromedia Panorama Viewer" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Mikromedia Panorama Viewer" changes.

Do you want to report abuse regarding "Mikromedia Panorama Viewer".

  • Information
  • Comments (0)

Visual TFT/GLCD Project Blog

Presenting the Mikromedia Panorama Viewer

An overview video for the pano firmware.

Watch on YouTube
Panorama Viewer Titles

Panorama Viewer Titles

This is the opening title screen for the MMB pano Hex firmware.

View full image
Explore the Panorama

Explore the Panorama

With the Panorama Viewer firmware you can explore cylindrical panoramas using the Mikromedia's color touch screen display.

View full image

Installation

1. Install Firmware: Flash the Pano_DSPIC33.hex firmware file to your Mikromedia dsPIC33 board. Flash the Pano_PIC32.hex firmware file to your Mikromedia PIC32 board.

2. Install resource file: Copy the resource file Pano_res.RES to the root folder of your Mikromedia board's MicroSD memory card.

3. Enjoy the fun of an interactive panorama on your Mikromedia dsPIC33 or PIC32 screen.

Hardware Required

Mikromedia for dsPIC33 (dsPIC33FJ256GP710A)

http://www.mikroe.com/mikromedia/dspic33/

or

Mikromedia for PIC32 (PIC32MX460F512L MCU)

http://www.mikroe.com/mikromedia/pic32/

Panorama Image Slicing Tips

When creating an image sequence for use with VisualTFT use the file naming convention of image###.bmp

eg. image001.bmp to image192.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 Pano_frames.h header file creates the image address array named "PANO_FRAMES" that holds the names of each of the slices in the panorama. When I created the Pano_frames.h array I looked in the file Pano_resources.h to find out the names that VisualTFT / MikroC used for each BMP frame in the panorama.

When VisualTFT saves an external image resource to the .res file it writes the external image pointer address for the image pano001.bmp in the resource.h file as:

#define pano001_bmp 0x0000738A

If you are creating a array of VisualTFT .res external image references 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 panorama.

eg. The first frame in the array begins at PANO_FRAMES[0] and image number 384 is located at PANO_FRAMES[383].

To change the panorama slice size you need to edit the lines:

// Sets the width in pixels of a panorama slice

#define SLICE_WIDTH 2

and

// Sets how many slices are visible onscreen at once

#define VISIBLE_SLICES 160



ALSO FROM THIS AUTHOR

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]

PIC32 Soccer Bounce Demo

5

The Soccer Bounce demo uses the accelerometer input to roll a soccer ball around on a Mikromedia PIC32 screen. The code was written using MikroC Pro for PIC32 and VisualTFT. The soccer ball sprite graphics are rendered using Dragan Regodic's excellent TFT Graphics library: http://www.libstock.com/projects/view/914/tft-graphics-library

[Learn More]

Mikromedia VR Head Tilt Demo

0

The demo uses a pair of Mikromedia boards and a Google Cardboard head mounted display to create a PIC32 microcontroller driven stereoscopic 3D view that responds interactively to the accelerometer sensor's tilt input. The code was written using MikroC Pro for PIC32 and VisualTFT.

[Learn More]