/*******************************************************************************
MPLAB Harmony Graphics Composer Generated Implementation File
File Name:
libaria_events.c
Summary:
Build-time generated implementation from the MPLAB Harmony
Graphics Composer.
Description:
Build-time generated implementation from the MPLAB Harmony
Graphics Composer.
Created with MPLAB Harmony Version 2.04
*******************************************************************************/
// DOM-IGNORE-BEGIN
/*******************************************************************************
Copyright (c) 2013-2014 released Microchip Technology Inc. All rights reserved.
Microchip licenses to you the right to use, modify, copy and distribute
Software only when embedded on a Microchip microcontroller or digital signal
controller that is integrated into your product or third party product
(pursuant to the sublicense terms in the accompanying license agreement).
You should refer to the license agreement accompanying this Software for
additional information regarding your rights and obligations.
SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER
CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR
OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR
CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF
SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
*******************************************************************************/
// DOM-IGNORE-END
#include "gfx/libaria/libaria_events.h"
SYS_TMR_HANDLE handleTimer1;
int Scr = 0;
extern int ys_DISP_ORIENTATION; // 90;
void Timer_Callback1 ( uintptr_t context, uint32_t currTick )
{
switch(Scr)
{
case 0:
ys_DISP_ORIENTATION = 0; //horizontal: 160 vertical: 128
GFX_Result initialize(GFX_Context* context);
laContext_SetActiveScreen(screen1_ID); //screen1 表示
LATGbits.LATG15 = 1;
break;
case 1:
ys_DISP_ORIENTATION = 90; //horizontal: 160 vertical: 128
GFX_Result initialize(GFX_Context* context);
laContext_SetActiveScreen(screen2_ID); //screen2 表示
LATGbits.LATG15 = 0;
break;
default:
break;
}
Scr++;
if(Scr >= 2)Scr = 0;
}
void TmrFunc(void)
{
handleTimer1 = SYS_TMR_CallbackPeriodic(2000, 1, Timer_Callback1);
// LATGbits.LATG15 = 1;
}